Permalink
Browse files

Fix a typo in the doc of forty_two AR FinderMethod

  • Loading branch information...
ebouchut committed Apr 24, 2014
1 parent 12ad2a7 commit cd440c9ea716ebb78eb936cda9cf9389bc1359e8
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
@@ -242,7 +242,7 @@ def fifth!
# 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 fifth object from OFFSET 3 (which is OFFSET 44)
+ # 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
def forty_two
find_nth(41, offset_index)

0 comments on commit cd440c9

Please sign in to comment.