From 7f9ffb2ebf1a0230368f54a6372cb7196c90177e Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 10 Jun 2005 13:54:58 +0000 Subject: Eager loading of dependent has_one associations won't delete the association #1212. Also, starting to refactor the tests to make them speedier, with optional support for transactional fixtures. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations.rb') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 001572a2c5..93960f87e4 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -719,7 +719,7 @@ module ActiveRecord next unless row[primary_key_table[reflection.table_name]] record.send( - "#{reflection.name}=", + "set_#{reflection.name}_target", reflection.klass.send(:instantiate, extract_record(schema_abbreviations, reflection.table_name, row)) ) end -- cgit v1.2.3