<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -222,9 +222,9 @@ module WillPaginate
                   # scope_out adds a 'with_finder' method which acts like with_scope, if it's present
                   # then execute the count with the scoping provided by the with_finder
                   send(scoper, &amp;counter)
-                elsif match = /^find_(all_by|by)_([_a-zA-Z]\w*)$/.match(finder)
+                elsif finder =~ /^find_(all_by|by)_([_a-zA-Z]\w*)$/
                   # extract conditions from calls like &quot;paginate_by_foo_and_bar&quot;
-                  attribute_names = extract_attribute_names_from_match(match)
+                  attribute_names = $2.split('_and_')
                   conditions = construct_attributes_from_arguments(attribute_names, args)
                   with_scope(:find =&gt; { :conditions =&gt; conditions }, &amp;counter)
                 else</diff>
      <filename>lib/will_paginate/finder.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f161d99c0cd4517b4954db214e49ba606ec70277</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/agile/will_paginate/commit/48fc49cfcfe90779ad4a36663671f9eac8faf458</url>
  <id>48fc49cfcfe90779ad4a36663671f9eac8faf458</id>
  <committed-date>2008-10-26T08:32:06-07:00</committed-date>
  <authored-date>2008-10-26T08:27:34-07:00</authored-date>
  <message>Rails 2.2 fix: stop using `extract_attribute_names_from_match` inernal AR method, it no longer exists</message>
  <tree>e24fb5ce8c1467c10268aa19925b4ed32aa54345</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
