mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Clarify comment by removing french reference ('a la'). Should improve readability for non-native english speakers.
This commit is contained in:
parent
ac4c5e9722
commit
f305c60816
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ module Enumerable
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue