diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-26 16:05:15 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-26 16:05:15 -0800 |
commit | f3e9cbc6955af8f430e75cf5d61e5940f7f46591 (patch) | |
tree | 6b1c095f5f50f61341794095d2b21ff0d7afa5bf /activerecord/lib | |
parent | 54a2bf66019d2694ff53f666765faf5bca927c09 (diff) | |
download | rails-f3e9cbc6955af8f430e75cf5d61e5940f7f46591.tar.gz rails-f3e9cbc6955af8f430e75cf5d61e5940f7f46591.tar.bz2 rails-f3e9cbc6955af8f430e75cf5d61e5940f7f46591.zip |
use an attribute rather than a SQL literal
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index f76681e880..4330d850fe 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -284,7 +284,7 @@ module ActiveRecord @implicit_readonly = false arel.project(*selects) else - arel.project(Arel.sql(@klass.quoted_table_name + '.*')) + arel.project(@klass.arel_table[Arel.star]) end end |