diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index e2d4cf4378..fb5c7ff374 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -61,7 +61,7 @@ module ActiveRecord build tree, @join_root, Arel::InnerJoin end - def graft(*associations) + def graft(associations) associations.reject { |join_node| find_node join_node }.each { |join_node| diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index e1efc6a189..776360fc55 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -950,7 +950,7 @@ module ActiveRecord join_list ) - join_dependency.graft(*stashed_association_joins) + join_dependency.graft(stashed_association_joins) joins = join_dependency.join_constraints |