<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,7 @@
 
 * Added Object#present? which is equivalent to !Object#blank? [DHH]
 
-* Added Enumberable#many? to encapsulate collection.size &gt; 1 [DHH]
+* Added Enumberable#many? to encapsulate collection.size &gt; 1 [DHH/Damian Janowski]
 
 * Add more standard Hash methods to ActiveSupport::OrderedHash [Steve Purcell]
 </diff>
      <filename>activesupport/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -79,7 +79,9 @@ module Enumerable
   end
   
   # Returns true if the collection has more than 1 element. Functionally equivalent to collection.size &gt; 1.
-  def many?
+  # Works with a block too ala any?, so people.many? { |p| p.age &gt; 26 } # =&gt; returns true if more than 1 person is over 26.
+  def many?(&amp;block)
+    size = block_given? ? select(&amp;block).size : self.size
     size &gt; 1
   end
 end</diff>
      <filename>activesupport/lib/active_support/core_ext/enumerable.rb</filename>
    </modified>
    <modified>
      <diff>@@ -63,10 +63,15 @@ class EnumerableTests &lt; Test::Unit::TestCase
     assert_equal({ 5 =&gt; payments[0], 15 =&gt; payments[1], 10 =&gt; payments[2] },
                  payments.index_by { |p| p.price })
   end
-  
-  def test_several
+
+  def test_many
     assert ![].many?
     assert ![ 1 ].many?
     assert [ 1, 2 ].many?
+
+    assert ![].many? {|x| x &gt; 1 }
+    assert ![ 2 ].many? {|x| x &gt; 1 }
+    assert ![ 1, 2 ].many? {|x| x &gt; 1 }
+    assert [ 1, 2, 2 ].many? {|x| x &gt; 1 }
   end
 end</diff>
      <filename>activesupport/test/core_ext/enumerable_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>00ba4c0cf32f9417d47bd891eba97f2e04609520</id>
    </parent>
  </parents>
  <author>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/161ab28b7c0bd28828b6d18613a9de09d47023c6</url>
  <id>161ab28b7c0bd28828b6d18613a9de09d47023c6</id>
  <committed-date>2008-06-20T09:31:06-07:00</committed-date>
  <authored-date>2008-06-20T09:31:06-07:00</authored-date>
  <message>Added block-handling to Enumerable#many? (Damian Janowski) [#452 state:resolved]</message>
  <tree>e66809696a44b505b2f1e379f54adbbf67930300</tree>
  <committer>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </committer>
</commit>
