# File lib/ruote/workitem.rb, line 437 def remove_tag(tag) # it's a bit convoluted... trying to cope with potential inconsistencies # # normally, it should only be a tags.pop(), but since user have # access to the workitem and its fields... better be safe than sorry tags = (@h['fields']['__tags__'] || []) if index = tags.rindex(tag) tags.delete_at(index) end @h['fields']['__left_tag__'] = tag end