diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-25 15:25:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-25 15:25:11 -0700 |
commit | 0a609eea504f72baead7548d47f0fe707314a033 (patch) | |
tree | fce355a8fa77e32388c6c1cafa35f7d56639b89e /activerecord | |
parent | a6fe244e9b05c60aac88842a38fb2b6285d5571b (diff) | |
download | rails-0a609eea504f72baead7548d47f0fe707314a033.tar.gz rails-0a609eea504f72baead7548d47f0fe707314a033.tar.bz2 rails-0a609eea504f72baead7548d47f0fe707314a033.zip |
use sql literal factory method
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/association_preload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/association_preload.rb b/activerecord/lib/active_record/association_preload.rb index 11c2084b5b..83383e9b19 100644 --- a/activerecord/lib/active_record/association_preload.rb +++ b/activerecord/lib/active_record/association_preload.rb @@ -393,7 +393,7 @@ module ActiveRecord append_conditions(reflection, preload_options)).join(' AND ') find_options = { - :select => preload_options[:select] || options[:select] || Arel::SqlLiteral.new("#{table_name}.*"), + :select => preload_options[:select] || options[:select] || Arel.sql("#{table_name}.*"), :include => preload_options[:include] || options[:include], :joins => options[:joins], :group => preload_options[:group] || options[:group], |