mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.96k stars 1.19k forks source link

Tag does not auto destroy when tagging moves to another tag #1041

Closed hatu90 closed 3 years ago

hatu90 commented 3 years ago

When I am doing moving tagging to another tag ( using tagging.update(tag: another_tag)), even the current tag has taggings_count to be zero, the current_tag is not deleted.

seuros commented 3 years ago

Why not delete the tagging and create it in another model ? I think you are bypassing the Activerecord callbacks

hatu90 commented 3 years ago

Thank @seuros