diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-06-03 10:35:43 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-06-03 10:35:43 +0200 |
| commit | e4325f3d984d873d761e770bd4c42cabcd1df88a (patch) | |
| tree | c61e6cf3aa122bd006b4feb6bada47160ccc6c78 /app/controllers/comments_controller.rb | |
| parent | 7508b08628c435cf80957ae46828615446cdc8be (diff) | |
| download | operum-e4325f3d984d873d761e770bd4c42cabcd1df88a.tar.gz operum-e4325f3d984d873d761e770bd4c42cabcd1df88a.zip | |
Upgrade to the latest Rails
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
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:) |
