diff options
Diffstat (limited to 'activerecord/lib/active_record/associations/join_dependency.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 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| |