method
replace_keys
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToPolymorphicAssociation
replace_keys(record)private
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb, line 17
def replace_keys(record)
super
owner[reflection.foreign_type] = record ? record.class.polymorphic_name : nil
end