mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
call to_a since we are not passing anything to all()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user