Permalink
Browse files

make sure that join nodes are uniq

  • Loading branch information...
1 parent a04e103 commit 5d78b4c6f7829498e5d2a8cd4fceca0e24a3f64e @tenderlove tenderlove committed Dec 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/query_methods.rb
@@ -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

0 comments on commit 5d78b4c

Please sign in to comment.