method

nullified_owner_attributes

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ForeignAssociation
nullified_owner_attributes() public

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/foreign_association.rb, line 13
    def nullified_owner_attributes
      Hash.new.tap do |attrs|
        Array(reflection.foreign_key).each { |foreign_key| attrs[foreign_key] = nil }
        attrs[reflection.type] = nil if reflection.type.present?
      end
    end
Register or log in to add new notes.