method
replace_keys
v3.1.0 -
Show latest stable
- Class:
ActiveRecord::Associations::BelongsToAssociation
replace_keys(record)private
No documentation available.
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 43
def replace_keys(record)
owner[reflection.foreign_key] = record && record[reflection.association_primary_key]
end