diff options
author | Thiago Pinto <tapgyn@gmail.com> | 2013-06-08 15:02:30 -0400 |
---|---|---|
committer | Thiago Pinto <tapgyn@gmail.com> | 2013-06-08 15:02:30 -0400 |
commit | 763e5a866283c83453de0c728e1b973afd41f934 (patch) | |
tree | 052d83cdf3f1515d9e34dd86d457b0874138eb0c /activerecord | |
parent | 667569ab04159b144d799f5fc97c3d862b2c30aa (diff) | |
download | rails-763e5a866283c83453de0c728e1b973afd41f934.tar.gz rails-763e5a866283c83453de0c728e1b973afd41f934.tar.bz2 rails-763e5a866283c83453de0c728e1b973afd41f934.zip |
doc: renaming table name to follow the file's standards
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index e716ce9675..f373714007 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -116,7 +116,7 @@ module ActiveRecord # # ==== Rails 3 # - # Person.first # SELECT "users".* FROM "users" LIMIT 1 + # Person.first # SELECT "people".* FROM "people" LIMIT 1 # # NOTE: Rails 3 may not +order+ this query by be the primary key. # The order will depend on the database implementation. @@ -124,7 +124,7 @@ module ActiveRecord # # ==== Rails 4 # - # Person.first # SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 + # Person.first # SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 # def first(limit = nil) if limit |