diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-19 17:44:33 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-19 17:44:33 -0700 |
commit | c56fea2be49cc4a61d385835a097772f4d27a5dd (patch) | |
tree | 26e613ec243bcaa46bcb493ff75bfb62eeb046e1 /activerecord/lib | |
parent | 08636527b5f5ba1c96937e86fd0c6e816462a1eb (diff) | |
download | rails-c56fea2be49cc4a61d385835a097772f4d27a5dd.tar.gz rails-c56fea2be49cc4a61d385835a097772f4d27a5dd.tar.bz2 rails-c56fea2be49cc4a61d385835a097772f4d27a5dd.zip |
use shortened version to generate 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 d0f11526ac..64d2cb0203 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -235,7 +235,7 @@ module ActiveRecord @implicit_readonly = false arel.project(*selects) else - arel.project(Arel::SqlLiteral.new(@klass.quoted_table_name + '.*')) + arel.project(Arel.sql(@klass.quoted_table_name + '.*')) end end |