instance method
find_nth
Ruby on Rails 4.2.9
Since v4.1.16Signature
find_nth(index, offset)
No documentation comment.
Parameters
-
indexreq -
offsetreq
Source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 479
def find_nth(index, offset)
if loaded?
@records[index]
else
offset += index
@offsets[offset] ||= find_nth_with_limit(offset, 1).first
end
end
Defined in activerecord/lib/active_record/relation/finder_methods.rb line 479
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FinderMethods