Flowdock
replace_keys(record, force: false) 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 110
        def replace_keys(record, force: false)
          target_key = record ? record._read_attribute(primary_key(record.class)) : nil

          if force || owner[reflection.foreign_key] != target_key
            owner[reflection.foreign_key] = target_key
          end
        end
Register or log in to add new notes.