method

apply_finish_limit

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::Batches
apply_finish_limit(relation, finish, batch_orders) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/batches.rb, line 297
      def apply_finish_limit(relation, finish, batch_orders)
        operators = batch_orders.map do |_column, order|
          order == :desc ? :gteq : :lteq
        end
        batch_condition(relation, primary_key, finish, operators)
      end
Register or log in to add new notes.