aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-10 16:57:03 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-10 16:57:03 -0300
commit6cc5e9aa81870a8a4ef1582b34abfb4deff7d115 (patch)
treecaaab2ba9d14de8293b2594f4e1f7bdb37c9d602 /activerecord/lib
parentbe4ecdcc87984e9421ff5d5c90d33f475e0fbc01 (diff)
downloadrails-6cc5e9aa81870a8a4ef1582b34abfb4deff7d115.tar.gz
rails-6cc5e9aa81870a8a4ef1582b34abfb4deff7d115.tar.bz2
rails-6cc5e9aa81870a8a4ef1582b34abfb4deff7d115.zip
Add test to column alias in `exists?` SQL.
This behavior was added in be4ecdcc87984e9421ff5d5c90d33f475e0fbc01. Closes #1139. Fixes #2553, #1141, #1623 and #2062.
Diffstat (limited to 'activerecord/lib')
-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 824a88ffc4..21a99800fe 100644
--- a/activerecord/lib/active_record/relation/finder_methods.rb
+++ b/activerecord/lib/active_record/relation/finder_methods.rb
@@ -106,7 +106,7 @@ module ActiveRecord
# Person.last # returns the last object fetched by SELECT * FROM people
# Person.where(["user_name = ?", user_name]).last
# Person.order("created_on DESC").offset(5).last
- # Person.last(3) # returns the last three objects fetched by SELECT * FROM people.
+ # Person.last(3) # returns the last three objects fetched by SELECT * FROM people.
#
# Take note that in that last case, the results are sorted in ascending order:
#