module ActsAsTaggableOnDynamic::TagOwner::InstanceMethods

Public Instance Methods

is_auto_tag_ownership_enabled?() click to toggle source

Validates if the auto tag ownership enabled

# File lib/acts_as_taggable_on_dynamic/tag_owner.rb, line 27
def is_auto_tag_ownership_enabled?
  (self.tag_owner != nil)
end
tag_owner() click to toggle source

Returns the tag owner which was set

# File lib/acts_as_taggable_on_dynamic/tag_owner.rb, line 20
def tag_owner
  @tag_owner || nil
end
tag_owner=(owner) click to toggle source

This method allows to set the owner of the tags which will be set during the next operations

# File lib/acts_as_taggable_on_dynamic/tag_owner.rb, line 13
def tag_owner=(owner)
  @tag_owner = owner
end