mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
shorten up or sql literal creation statements
This commit is contained in:
@@ -158,11 +158,9 @@ module ActiveRecord
|
||||
|
||||
case join
|
||||
when Array
|
||||
if array_of_strings?(join)
|
||||
join = Arel::SqlLiteral.new(join.join(' '))
|
||||
end
|
||||
join = Arel.sql(join.join(' ')) if array_of_strings?(join)
|
||||
when String
|
||||
join = Arel::SqlLiteral.new(join)
|
||||
join = Arel.sql(join)
|
||||
end
|
||||
|
||||
arel.join(join)
|
||||
|
||||
Reference in New Issue
Block a user