mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
committed by
Aaron Patterson
parent
056f05adcd
commit
af27262ec3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user