diff options
author | Eric Bouchut <ebouchut@gmail.com> | 2014-04-24 10:55:52 +0200 |
---|---|---|
committer | Eric Bouchut <ebouchut@gmail.com> | 2014-04-24 10:55:52 +0200 |
commit | cd440c9ea716ebb78eb936cda9cf9389bc1359e8 (patch) | |
tree | f5bff30fe0f7b2a7bb2f2b4e917ef000503b9a0b /activerecord/lib | |
parent | 12ad2a7947dfa548b17272813c504b42ad859319 (diff) | |
download | rails-cd440c9ea716ebb78eb936cda9cf9389bc1359e8.tar.gz rails-cd440c9ea716ebb78eb936cda9cf9389bc1359e8.tar.bz2 rails-cd440c9ea716ebb78eb936cda9cf9389bc1359e8.zip |
Fix a typo in the doc of forty_two AR FinderMethod
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 7af4b29ebc..d5ab761f89 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -242,7 +242,7 @@ module ActiveRecord # 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) |