call to_a since we are not passing anything to all()

This commit is contained in:
Aaron Patterson
2010-08-04 14:22:20 -07:00
parent 30abb01d07
commit ec736dff7b

View File

@@ -73,7 +73,7 @@ module ActiveRecord
break if records.size < batch_size
if primary_key_offset = records.last.id
records = relation.where(primary_key.gt(primary_key_offset)).all
records = relation.where(primary_key.gt(primary_key_offset)).to_a
else
raise "Primary key not included in the custom select clause"
end