method
find_nth_with_limit
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::FinderMethods
find_nth_with_limit(offset, limit)protected
No documentation available.
# File activerecord/lib/active_record/relation/finder_methods.rb, line 472
def find_nth_with_limit(offset, limit)
if order_values.empty? && primary_key
order(arel_table[primary_key].asc).limit(limit).offset(offset).to_a
else
limit(limit).offset(offset).to_a
end
end