Method: Tagalong::Tagger::InstanceMethods#untag

Defined in:
lib/tagalong/tagger.rb

#untag(taggable_obj, tag_name) ⇒ Object



39
40
41
42
43
# File 'lib/tagalong/tagger.rb', line 39

def untag(taggable_obj, tag_name)
  raise Tagalong::TaggableNotPersisted, "Taggable must be persisted to untag it." if !taggable_obj.persisted?
  tag_manager = Tagalong::TagManager.new(taggable_obj, self)
  tag_manager.remove_tag(tag_name)
end