instance method apply_start_limit

Ruby on Rails 7.2.3

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

apply_start_limit(relation, start, batch_orders)

No documentation comment.

Parameters

relation req
start req
batch_orders req
Source
# 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

Defined in activerecord/lib/active_record/relation/batches.rb line 290 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Batches

Type at least 2 characters to search.

↑↓ navigate · open · esc close