method

apply_limits

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActiveRecord::Batches
apply_limits(relation, start, finish) 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 223
    def apply_limits(relation, start, finish)
      relation = relation.where(arel_attribute(primary_key).gteq(start)) if start
      relation = relation.where(arel_attribute(primary_key).lteq(finish)) if finish
      relation
    end
Register or log in to add new notes.