Flowdock
method

second

Importance_1
v4.1.8 - Show latest stable - 0 notes - Class: ActiveRecord::FinderMethods
second() public

Find the second record. If no order is defined it will order by primary key.

Person.second # returns the second object fetched by SELECT * FROM people
Person.offset(3).second # returns the second object from OFFSET 3 (which is OFFSET 4)
Person.where(["user_name = :u", { u: user_name }]).second
Show source
Register or log in to add new notes.