0
0
Fork 0

Fix Admin::TagsController#unhide (#9481)

This commit is contained in:
ysksn 2018-12-11 05:37:38 +09:00 committed by Eugen Rochko
parent ae3d2f446a
commit 361818e931
2 changed files with 72 additions and 1 deletions

View file

@ -18,7 +18,7 @@ module Admin
def unhide
authorize @tag, :unhide?
@tag.account_tag_stat.update!(hidden: true)
@tag.account_tag_stat.update!(hidden: false)
redirect_to admin_tags_path(@filter_params)
end