diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 17:14:20 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-08 17:24:06 -0700 |
commit | 236a6716a9e3b6824b0b5e4dda3627c852c12a33 (patch) | |
tree | ccdec13f690966227c4e90f443a19d5fc8f2f5d3 /activerecord/lib/active_record/associations | |
parent | 868457488d3c43ff4e9c28e34883620d90345185 (diff) | |
download | rails-236a6716a9e3b6824b0b5e4dda3627c852c12a33.tar.gz rails-236a6716a9e3b6824b0b5e4dda3627c852c12a33.tar.bz2 rails-236a6716a9e3b6824b0b5e4dda3627c852c12a33.zip |
do not convert the tree to a list just for the first node
Diffstat (limited to 'activerecord/lib/active_record/associations')
-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 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) |