Skip to content
Browse files

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
  • Loading branch information...
1 parent 9e799e7 commit d6901bfe93431127433b3c682bb97b2d6acd31cb @dhh dhh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
View
2 activerecord/lib/active_record/associations.rb
@@ -676,7 +676,7 @@ def extract_association_for_record(record, rows, reflection)
end
end
- return association.compact
+ return association.uniq.compact
end
def extract_record(table_name, row)

0 comments on commit d6901bf

Please sign in to comment.
Something went wrong with that request. Please try again.