diff --git a/app/logical/tag_correction.rb b/app/logical/tag_correction.rb deleted file mode 100644 index 343075ad0..000000000 --- a/app/logical/tag_correction.rb +++ /dev/null @@ -1,24 +0,0 @@ -class TagCorrection - include ActiveModel::Model - include ActiveModel::Serializers::JSON - include ActiveModel::Serializers::Xml - - attr_reader :tag - delegate :category, :post_count, to: :tag - - def initialize(tag_id) - @tag = Tag.find(tag_id) - end - - def attributes - { post_count: post_count, category: category, category_cache: category_cache, tag: tag } - end - - def category_cache - Cache.get("tc:" + Cache.hash(tag.name)) - end - - def fix! - tag.update_category_cache - end -end