aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/relation/batches.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/batches.rb b/activerecord/lib/active_record/relation/batches.rb
index 46bb0e04ee..2b5c6fc739 100644
--- a/activerecord/lib/active_record/relation/batches.rb
+++ b/activerecord/lib/active_record/relation/batches.rb
@@ -205,7 +205,6 @@ module ActiveRecord
if limit_value
remaining = limit_value
batch_limit = remaining if remaining < batch_limit
- relation = relation.limit(nil) # new relation without the limit
end
relation = relation.reorder(batch_order).limit(batch_limit)