Hello !

I wrote an ActiveSupport patch to add a new feature.

This is a tiny tested patch that checks for Enumerable content uniqueness.

It returns true if the collection has no duplicated content and can be called 
with a block too, much like any?, so people.uniq? { |p| p.age > 26 } returns 
true if only 1 person is over 26.

Unit test and doc are included.

Please test this useful tiny patch.

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6588-add-enumerableuniq

Github fork / branch is available at 
https://github.com/Bounga/rails/commits/enumerable_uniq

Have a nice day.
-- 
Nicolas Cavigneaux
http://www.bounga.org
http://www.cavigneaux.net



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to