diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-15 11:12:33 -0800 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-16 01:49:30 +0530 |
commit | 4cd3302279f4ab5af642a1cd4e601b676ba6278b (patch) | |
tree | 370aea422a288aaff05178c293da5541a49d043a /activerecord/lib/active_record/relation | |
parent | 491ce5b6ce1a3af42d02efff9a2e42b1a8980553 (diff) | |
download | rails-4cd3302279f4ab5af642a1cd4e601b676ba6278b.tar.gz rails-4cd3302279f4ab5af642a1cd4e601b676ba6278b.tar.bz2 rails-4cd3302279f4ab5af642a1cd4e601b676ba6278b.zip |
make sure that join nodes are uniq
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 8e50f4a9bc..6660df302b 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -282,7 +282,7 @@ module ActiveRecord 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 |