Skip to content

Commit

Permalink
make sure that join nodes are uniq
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove authored and vijaydev committed Dec 15, 2010
1 parent 491ce5b commit 4cd3302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/query_methods.rb
Expand Up @@ -282,7 +282,7 @@ def build_joins(manager, joins)
association.join_to(manager)
end

manager.join_sources.concat join_nodes
manager.join_sources.concat join_nodes.uniq
manager.join_sources.concat join_list

manager
Expand Down

0 comments on commit 4cd3302

Please sign in to comment.