This commit is contained in:
Toks
2015-07-04 22:00:31 -04:00
parent b1b31d7387
commit 4f4fd8cb35
5 changed files with 52 additions and 35 deletions

View File

@@ -56,7 +56,7 @@ class CommentsController < ApplicationController
def destroy
@comment = Comment.find(params[:id])
check_privilege(@comment)
@comment.destroy
@comment.delete!
respond_with(@comment) do |format|
format.js
end