method
replace_keys
v4.1.8 -
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 69
def replace_keys(record)
owner[reflection.foreign_key] = record[reflection.association_primary_key(record.class)]
end