From 84499eb4bd2e5fe686199c122194b72040411d04 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 8 Oct 2013 11:26:29 -0700 Subject: decouple JoinAssociation from JoinDependency --- activerecord/lib/active_record/associations/join_dependency.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations/join_dependency.rb') diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index b3bc75e08b..89812a3826 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -176,7 +176,7 @@ module ActiveRecord raise EagerLoadPolymorphicError.new(reflection) end - JoinAssociation.new(reflection, self, parent, join_type) + JoinAssociation.new(reflection, join_parts.length, parent, join_type, alias_tracker) end def construct(parent, associations, join_parts, row, rs) -- cgit v1.2.3