change how tag counts are recalculated after a tag category changes

This commit is contained in:
albert
2013-03-12 12:26:25 -04:00
parent a6ed8bcaf1
commit 687a775fdf
4 changed files with 32 additions and 17 deletions

View File

@@ -23,6 +23,7 @@ class TagsController < ApplicationController
def update
@tag = Tag.find(params[:id])
@tag.update_attributes(params[:tag])
@tag.update_category_cache_for_all
respond_with(@tag)
end
end