sql literal strings should be marked as sql literal strings

This commit is contained in:
Aaron Patterson 2010-08-23 13:57:22 -07:00
parent ee9e1570be
commit 5931a1dbd3
1 changed files with 3 additions and 1 deletions

View File

@ -121,8 +121,10 @@ module ActiveRecord
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