instance method
apply_limits
Ruby on Rails 7.2.3
Since v5.2.8.1 PrivateSignature
apply_limits(relation, start, finish, batch_orders)
No documentation comment.
Parameters
-
relationreq -
startreq -
finishreq -
batch_ordersreq
Source
# File activerecord/lib/active_record/relation/batches.rb, line 284
def apply_limits(relation, start, finish, batch_orders)
relation = apply_start_limit(relation, start, batch_orders) if start
relation = apply_finish_limit(relation, finish, batch_orders) if finish
relation
end
Defined in activerecord/lib/active_record/relation/batches.rb line 284
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Batches