mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
removing unused lasgns
This commit is contained in:
@@ -149,7 +149,7 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def custom_join_sql(*joins)
|
||||
arel = table
|
||||
arel = table.select_manager
|
||||
|
||||
joins.each do |join|
|
||||
next if join.blank?
|
||||
@@ -160,12 +160,12 @@ module ActiveRecord
|
||||
when Hash, Array, Symbol
|
||||
if array_of_strings?(join)
|
||||
join_string = join.join(' ')
|
||||
arel = arel.join(Arel::SqlLiteral.new(join_string))
|
||||
arel.join(Arel::SqlLiteral.new(join_string))
|
||||
end
|
||||
when String
|
||||
arel = arel.join(Arel::SqlLiteral.new(join))
|
||||
arel.join(Arel::SqlLiteral.new(join))
|
||||
else
|
||||
arel = arel.join(join)
|
||||
arel.join(join)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user