method

nullified_owner_attributes

Importance_0
v6.0.0 - 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|
        attrs[reflection.foreign_key] = nil
        attrs[reflection.type] = nil if reflection.type.present?
      end
    end
Register or log in to add new notes.