Permalink
Browse files

do not convert the tree to a list just for the first node

  • Loading branch information...
1 parent 8684574 commit 236a6716a9e3b6824b0b5e4dda3627c852c12a33 @tenderlove tenderlove committed Oct 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/join_dependency.rb
@@ -173,7 +173,7 @@ def find_parent_node(parent)
end
def join_base
- @join_parts.first.join_part
+ @join_parts.join_part
end
def remove_duplicate_results!(base, records, associations)

0 comments on commit 236a671

Please sign in to comment.