Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… readability for non-native english speakers.
  • Loading branch information...
commit 8f13a166ceda779357d1c356776a11086f7ee146 1 parent e872a8f
@r00k r00k authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/core_ext/enumerable.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.