instance method
find_nth_with_limit
Ruby on Rails 4.1.16
Since v4.1.16Signature
find_nth_with_limit(offset, limit)
No documentation comment.
Parameters
-
offsetreq -
limitreq
Source
# 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
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 472
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods