<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,12 +37,12 @@ class ActiveRecord::Base
     # you the row you want.
     # using the primary_key allows us to piggy back on the index
     def fast_each(options)
-      i=minimum(primary_key, options)
+      i=minimum(&quot;#{table_name}.#{primary_key}&quot;, options)
       
       # not all the backends always sort primay_key columns so do it manuall
       options.update(:order =&gt; &quot;#{table_name}.#{primary_key} ASC&quot;)
       
-      i=minimum(primary_key, options) or return
+      i=minimum(&quot;#{table_name}.#{primary_key}&quot;, options) or return
       # first the first object by id
       yield(o=find_one(i, {}))
       # as long as we keep finding objects, keep going</diff>
      <filename>lib/active_record_each.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>74c4b7ee6f51945d86741046323dbc68d87758bc</id>
    </parent>
  </parents>
  <author>
    <name>Guillermo &#193;lvarez Fern&#225;ndez</name>
    <email>guillermo@cientifico.net</email>
  </author>
  <url>http://github.com/guillermo/active_record_each/commit/fd9e7f13af3444caa69872248c2fc00cde507a46</url>
  <id>fd9e7f13af3444caa69872248c2fc00cde507a46</id>
  <committed-date>2008-07-07T07:13:45-07:00</committed-date>
  <authored-date>2008-07-07T07:13:45-07:00</authored-date>
  <message>Minor change to let things like
Post.each(:include =&gt; :author) run without problems</message>
  <tree>14dc464895726a9c1c5e5c2f18c5cfc62ee7272e</tree>
  <committer>
    <name>Guillermo &#193;lvarez Fern&#225;ndez</name>
    <email>guillermo@cientifico.net</email>
  </committer>
</commit>
