ignores in moderation the admin restored comments

This commit is contained in:
Juanjo Bazán
2015-09-25 13:24:34 +02:00
parent 13fc4e5a3d
commit 0dc9224ce6
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ class Admin::CommentsController < Admin::BaseController
def restore
@comment.restore
@comment.ignore_flag
Activity.log(current_user, :restore, @comment)
redirect_to request.query_parameters.merge(action: :index)
end