Permalink
Browse files

doc: renaming table name to follow the file's standards

  • Loading branch information...
thejamespinto committed Jun 8, 2013
1 parent 667569a commit 763e5a866283c83453de0c728e1b973afd41f934
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/relation/finder_methods.rb
@@ -116,15 +116,15 @@ def take!
#
# ==== 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.
# In order to ensure that behavior use <tt>User.order(:id).first</tt> instead.
#
# ==== 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

0 comments on commit 763e5a8

Please sign in to comment.