method
apply_start_limit
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::Batches
apply_start_limit(relation, start, batch_orders)private
No documentation available.
# File activerecord/lib/active_record/relation/batches.rb, line 290
def apply_start_limit(relation, start, batch_orders)
operators = batch_orders.map do |_column, order|
order == :desc ? :lteq : :gteq
end
batch_condition(relation, primary_key, start, operators)
end