From 763e5a866283c83453de0c728e1b973afd41f934 Mon Sep 17 00:00:00 2001 From: Thiago Pinto Date: Sat, 8 Jun 2013 15:02:30 -0400 Subject: doc: renaming table name to follow the file's standards --- activerecord/lib/active_record/relation/finder_methods.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord') 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 -- cgit v1.2.3