diff options
Diffstat (limited to 'app/controllers/comments_controller.rb')
| -rw-r--r-- | app/controllers/comments_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index d362460..c4b21cb 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -38,7 +38,7 @@ class CommentsController < ApplicationController end def destroy - comment = Comment.find(params[:id]) + comment = Comment.find(params.expect(:id)) comment.destroy handle_from_param!(from: params[:from]) @@ -51,11 +51,11 @@ class CommentsController < ApplicationController end def set_thing - @thing = Thing.find(params[:thing_id]) + @thing = Thing.find(params.expect(:thing_id)) end def set_comment - @comment = Comment.find(params[:id]) + @comment = Comment.find(params.expect(:id)) end def handle_from_param!(from:) |
