Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d6901bfe93431127433b3c682bb97b2d6acd31cb 1 parent 9e799e7
@dhh dhh authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.