adds touch to debates on tag destroy

This commit is contained in:
Juanjo Bazán
2015-08-31 20:26:30 +02:00
parent 358f8cc392
commit a00abc0020
2 changed files with 21 additions and 0 deletions

View File

@@ -1 +1,8 @@
ActsAsTaggableOn::Tagging.class_eval do
after_destroy :touch_taggable
def touch_taggable
taggable.touch
end
end