instance method
apply_limits
Ruby on Rails edge
Since v5.0.7.2 Private — implementation detail, not part of the public APISignature
apply_limits(relation, cursor, start, finish, batch_orders)
No documentation comment.
Parameters
-
relationreq -
cursorreq -
startreq -
finishreq -
batch_ordersreq
Source
# File activerecord/lib/active_record/relation/batches.rb, line 330
def apply_limits(relation, cursor, start, finish, batch_orders)
relation = apply_start_limit(relation, cursor, start, batch_orders) if start
relation = apply_finish_limit(relation, cursor, finish, batch_orders) if finish
relation
end
Defined in activerecord/lib/active_record/relation/batches.rb line 330
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Batches