From e4325f3d984d873d761e770bd4c42cabcd1df88a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 3 Jun 2026 10:35:43 +0200 Subject: Upgrade to the latest Rails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/controllers/comments_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/comments_controller.rb') 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:) -- cgit v1.2.3