提交 6f4d1007 编写于 作者: A Aaron Patterson

marking sql literals as sql literals

上级 ecbdec11
......@@ -24,7 +24,7 @@ def has_primary_key?
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册