mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
marking sql literals as sql literals
This commit is contained in:
@@ -24,7 +24,7 @@ module ActiveRecord
|
||||
|
||||
protected
|
||||
def construct_find_options!(options)
|
||||
options[:joins] = @join_sql
|
||||
options[:joins] = Arel::SqlLiteral.new @join_sql
|
||||
options[:readonly] = finding_with_ambiguous_select?(options[:select] || @reflection.options[:select])
|
||||
options[:select] ||= (@reflection.options[:select] || '*')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user