From 236a6716a9e3b6824b0b5e4dda3627c852c12a33 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 8 Oct 2013 17:14:20 -0700 Subject: do not convert the tree to a list just for the first node --- activerecord/lib/active_record/associations/join_dependency.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index 7df89ba360..0430a98671 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -173,7 +173,7 @@ module ActiveRecord end def join_base - @join_parts.first.join_part + @join_parts.join_part end def remove_duplicate_results!(base, records, associations) -- cgit v1.2.3