Remove dead TagCorrection code.

Dead since bc34fb16a.
This commit is contained in:
evazion
2020-03-30 12:39:26 -05:00
parent 4e2fd82ef6
commit 91e5ed67b7

View File

@@ -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