diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-04 07:20:32 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-04 07:20:32 +0000 |
commit | d6901bfe93431127433b3c682bb97b2d6acd31cb (patch) | |
tree | 9d24fb58c75187c59ef4718373481033d7de9537 /activerecord/lib | |
parent | 9e799e731c7960e37ea928371e93590a79f36000 (diff) | |
download | rails-d6901bfe93431127433b3c682bb97b2d6acd31cb.tar.gz rails-d6901bfe93431127433b3c682bb97b2d6acd31cb.tar.bz2 rails-d6901bfe93431127433b3c682bb97b2d6acd31cb.zip |
Dont include multiple versions of the same association object
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1087 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 071660e7cf..8bc15a213b 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -676,7 +676,7 @@ module ActiveRecord end end - return association.compact + return association.uniq.compact end def extract_record(table_name, row) |