bug fixes
This commit is contained in:
@@ -149,7 +149,7 @@ class AnonymousUser
|
||||
0
|
||||
end
|
||||
|
||||
%w(member banned privileged platinum contributor janitor moderator admin).each do |name|
|
||||
%w(member banned privileged builder platinum contributor janitor moderator admin).each do |name|
|
||||
define_method("is_#{name}?") do
|
||||
false
|
||||
end
|
||||
|
||||
@@ -46,13 +46,13 @@ class TagAliasCorrection
|
||||
end
|
||||
|
||||
def clear_cache
|
||||
tag_alias.clear_cache
|
||||
tag_alias.clear_all_cache
|
||||
end
|
||||
|
||||
def fix!
|
||||
clear_cache
|
||||
tag_alias.update_cache
|
||||
tag_alias.update_posts
|
||||
tag_alias.delay.update_posts
|
||||
tag_alias.antecedent_tag.fix_post_count if tag_alias.antecedent_tag
|
||||
tag_alias.consequent_tag.fix_post_count if tag_alias.consequent_tag
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user