diff --git a/app/controllers/cards/comments_controller.rb b/app/controllers/cards/comments_controller.rb index 6c87e89c7..9588646c2 100644 --- a/app/controllers/cards/comments_controller.rb +++ b/app/controllers/cards/comments_controller.rb @@ -19,13 +19,14 @@ class Cards::CommentsController < ApplicationController end def destroy - @comment.destroy + @message.destroy redirect_to @card end private def set_comment @comment = @card.comments.find(params[:id]) + @message = @comment.message end def ensure_creatorship