Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

we should mark sql strings as sql literals

  • Loading branch information...
commit 6a1ea881cf56c4b0ccd35cbb7549d2e70f7755ff 1 parent 1cc653f
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/association_preload.rb
View
2  activerecord/lib/active_record/association_preload.rb
@@ -372,7 +372,7 @@ def find_associated_records(ids, reflection, preload_options)
conditions << append_conditions(reflection, preload_options)
find_options = {
- :select => preload_options[:select] || options[:select] || "#{table_name}.*",
+ :select => preload_options[:select] || options[:select] || Arel::SqlLiteral.new("#{table_name}.*"),
:include => preload_options[:include] || options[:include],
:conditions => [conditions, ids],
:joins => options[:joins],
Please sign in to comment.
Something went wrong with that request. Please try again.