mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
mark SQL literals as SQL literals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user