Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mark SQL literals as SQL literals

  • Loading branch information...
commit e991f39709daa495a28bb4fa07e7470cb8640e6f 1 parent aec0849
@tenderlove tenderlove authored
View
2  activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
@@ -26,7 +26,7 @@ def has_primary_key?
def construct_find_options!(options)
options[:joins] = Arel::SqlLiteral.new @join_sql
options[:readonly] = finding_with_ambiguous_select?(options[:select] || @reflection.options[:select])
- options[:select] ||= (@reflection.options[:select] || '*')
+ options[:select] ||= (@reflection.options[:select] || Arel::SqlLiteral.new('*'))
end
def count_records
Please sign in to comment.
Something went wrong with that request. Please try again.