mark SQL literals as SQL literals

This commit is contained in:
Aaron Patterson
2010-08-24 17:15:46 -07:00
parent 4f945e97e5
commit e1e7122271

View File

@@ -26,7 +26,7 @@ module ActiveRecord
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