提交 5931a1db 编写于 作者: A Aaron Patterson

sql literal strings should be marked as sql literal strings

上级 ee9e1570
......@@ -121,8 +121,10 @@ def custom_join_sql(*joins)
when Hash, Array, Symbol
if array_of_strings?(join)
join_string = join.join(' ')
arel = arel.join(join_string)
arel = arel.join(Arel::SqlLiteral.new(join_string))
end
when String
arel = arel.join(Arel::SqlLiteral.new(join))
else
arel = arel.join(join)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册