fix bug when blocking users

This commit is contained in:
Juanjo Bazán
2015-09-22 16:26:20 +02:00
parent 1047df11a1
commit 23eba622a2

View File

@@ -73,11 +73,11 @@ class Comment < ActiveRecord::Base
end
def after_hide
commentable_type.constantize.reset_counters(commentable_id, :comments)
commentable_type.constantize.with_hidden.reset_counters(commentable_id, :comments)
end
def after_restore
commentable_type.constantize.reset_counters(commentable_id, :comments)
commentable_type.constantize.with_hidden.reset_counters(commentable_id, :comments)
end
def reply?