Module: ActsAsTaggableOnDynamic::TagOwner::InstanceMethods
- Defined in:
- lib/acts_as_taggable_on_dynamic/tag_owner.rb
Instance Method Summary collapse
-
#is_auto_tag_ownership_enabled? ⇒ Boolean
Validates if the auto tag ownership enabled.
-
#tag_owner ⇒ Object
Returns the tag owner which was set.
-
#tag_owner=(owner) ⇒ Object
This method allows to set the owner of the tags which will be set during the next operations.
Instance Method Details
#is_auto_tag_ownership_enabled? ⇒ Boolean
Validates if the auto tag ownership enabled
27 28 29 |
# 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 ⇒ Object
Returns the tag owner which was set
20 21 22 |
# File 'lib/acts_as_taggable_on_dynamic/tag_owner.rb', line 20 def tag_owner @tag_owner || nil end |
#tag_owner=(owner) ⇒ Object
This method allows to set the owner of the tags which will be set during the next operations
13 14 15 |
# File 'lib/acts_as_taggable_on_dynamic/tag_owner.rb', line 13 def tag_owner=(owner) @tag_owner = owner end |