Permalink
Browse files

Merge pull request #14858 from ebouchut/patch-1

Fix a typo in the doc of forty_two AR FinderMethod [ci skip]
  • Loading branch information...
2 parents 12ad2a7 + cd440c9 commit 43101ab3afe2a008d50cd78069e3bd94736da07d @robin850 robin850 committed Apr 24, 2014
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 43101ab

Please sign in to comment.