From d6901bfe93431127433b3c682bb97b2d6acd31cb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 4 Apr 2005 07:20:32 +0000 Subject: 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 --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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) -- cgit v1.2.3