diff options
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 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 |