Fix a couple of tests in join_model_test.rb which were failing when the identity map is turned off

This commit is contained in:
Jon Leighton
2011-03-04 21:21:34 +00:00
committed by Aaron Patterson
parent 056f05adcd
commit af27262ec3

View File

@@ -191,8 +191,8 @@ module ActiveRecord
else
attributes[reflection.foreign_key] = owner[reflection.active_record_primary_key]
if options[:as]
attributes["#{options[:as]}_type"] = owner.class.base_class.name
if reflection.options[:as]
attributes[reflection.type] = owner.class.base_class.name
end
end
attributes