mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove warning
warning: `*' interpreted as argument prefix
This commit is contained in:
parent
c0163cc5f2
commit
2a07db7169
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ module ActiveRecord
|
|||
return if values[:joins].blank?
|
||||
|
||||
if other.klass == relation.klass
|
||||
relation.joins! *values[:joins]
|
||||
relation.joins!(*values[:joins])
|
||||
else
|
||||
joins_dependency, rest = values[:joins].partition do |join|
|
||||
case join
|
||||
|
@ -89,7 +89,7 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
join_dependency = ActiveRecord::Associations::JoinDependency.new(other.klass,
|
||||
join_dependency = ActiveRecord::Associations::JoinDependency.new(other.klass,
|
||||
joins_dependency,
|
||||
[])
|
||||
relation.joins! rest
|
||||
|
|
Loading…
Reference in a new issue