le 26/02/2008 15:36, Jano Svitok nous a dit:

>>
>>  def add_user(user)
> -    unless users.include?(user.id)
> + unless users.any? {|u| user.id == u.id }
>>      users << user
>>    end
>>  end
> 

Fine ! This is was I was looking for.

Thanks to people who answered...