Permalink
Browse files

Clarify comment by removing french reference ('a la'). Should improve…

… readability for non-native english speakers.
  • Loading branch information...
1 parent e872a8f commit 8f13a166ceda779357d1c356776a11086f7ee146 @r00k r00k committed Feb 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/enumerable.rb
@@ -94,7 +94,7 @@ def index_by
end
# Returns true if the collection has more than 1 element. Functionally equivalent to collection.size > 1.
- # Works with a block too ala any?, so people.many? { |p| p.age > 26 } # => returns true if more than 1 person is over 26.
+ # Can be called with a block too, much like any?, so people.many? { |p| p.age > 26 } returns true if more than 1 person is over 26.
def many?(&block)
size = block_given? ? select(&block).size : self.size
size > 1

0 comments on commit 8f13a16

Please sign in to comment.