module ActsAsTaggableOnMongoid::Models::Concerns::TagAssociations
Private Instance Methods
atom_unset_blank_owner()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/models/concerns/tag_associations.rb, line 20 def atom_unset_blank_owner return if !attributes.key?("owner_id") && !attributes.key?("owner_type") return if owner_id.present? && owner_type.present? unset(:owner_id, :owner_type) end