This commit is contained in:
r888888888
2013-05-21 17:58:09 -07:00
parent 03e7d08830
commit cb2e1e9f57
2 changed files with 5 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ class TagAlias < ActiveRecord::Base
end
def ensure_category_consistency
if antecedent_tag.category != consequent_tag.category
if antecedent_tag.category != consequent_tag.category && antecedent_tag.category != Tag.categories.general
consequent_tag.update_attribute(:category, antecedent_tag.category)
consequent_tag.update_category_cache_for_all
end