method
apply_limits
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::Batches
apply_limits(relation, start, finish)private
No documentation available.
# File activerecord/lib/active_record/relation/batches.rb, line 252
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