v6.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::FinderMethods
forty_two() public

Find the forty-second record. Also known as accessing “the reddit”. If no order is defined it will order by primary key.

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