This commit is contained in:
Toks
2013-06-29 11:44:33 -04:00
parent 6af2bde6c3
commit 59db60f35c
2 changed files with 6 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ module Moderator
@post = ::Post.find(params[:id])
if params[:commit] == "Delete"
@post.flag!(params[:reason])
@post.delete!
@post.delete!(:reason => params[:reason])
end
redirect_to(post_path(@post))
end