aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-04-24 11:25:53 +0200
committerRobin Dupret <robin.dupret@gmail.com>2014-04-24 11:25:53 +0200
commit43101ab3afe2a008d50cd78069e3bd94736da07d (patch)
treef5bff30fe0f7b2a7bb2f2b4e917ef000503b9a0b
parent12ad2a7947dfa548b17272813c504b42ad859319 (diff)
parentcd440c9ea716ebb78eb936cda9cf9389bc1359e8 (diff)
downloadrails-43101ab3afe2a008d50cd78069e3bd94736da07d.tar.gz
rails-43101ab3afe2a008d50cd78069e3bd94736da07d.tar.bz2
rails-43101ab3afe2a008d50cd78069e3bd94736da07d.zip
Merge pull request #14858 from ebouchut/patch-1
Fix a typo in the doc of forty_two AR FinderMethod [ci skip]
-rw-r--r--activerecord/lib/active_record/relation/finder_methods.rb2
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)