instance method
apply_finish_limit
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
apply_finish_limit(relation, cursor, finish, batch_orders)
No documentation comment.
Parameters
-
relationreq -
cursorreq -
finishreq -
batch_ordersreq
Source
# File activerecord/lib/active_record/relation/batches.rb, line 341
def apply_finish_limit(relation, cursor, finish, batch_orders)
operators = batch_orders.map do |_column, order|
order == :desc ? :gteq : :lteq
end
batch_condition(relation, cursor, finish, operators)
end
Defined in activerecord/lib/active_record/relation/batches.rb line 341
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Batches