diff options
author | Ben Orenstein <ben.orenstein@gmail.com> | 2011-02-26 14:29:22 -0500 |
---|---|---|
committer | Ben Orenstein <ben.orenstein@gmail.com> | 2011-02-26 14:29:22 -0500 |
commit | 8f13a166ceda779357d1c356776a11086f7ee146 (patch) | |
tree | 4b085720e5e2c45944d0d893ee330b9338db5655 /activesupport/lib | |
parent | e872a8f2a5c2f9127b9b15a60ba37d5a21e9f6cb (diff) | |
download | rails-8f13a166ceda779357d1c356776a11086f7ee146.tar.gz rails-8f13a166ceda779357d1c356776a11086f7ee146.tar.bz2 rails-8f13a166ceda779357d1c356776a11086f7ee146.zip |
Clarify comment by removing french reference ('a la'). Should improve readability for non-native english speakers.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/enumerable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/enumerable.rb b/activesupport/lib/active_support/core_ext/enumerable.rb index 6ecedc26ef..6d7f771b5d 100644 --- a/activesupport/lib/active_support/core_ext/enumerable.rb +++ b/activesupport/lib/active_support/core_ext/enumerable.rb @@ -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 |