Flowdock
method

replace_keys

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActiveRecord::Associations::BelongsToAssociation
replace_keys(record) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 97
        def replace_keys(record)
          owner[reflection.foreign_key] = record ? record._read_attribute(primary_key(record)) : nil
        end
Register or log in to add new notes.