aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/things_controller.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-06-03 10:35:43 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-06-03 10:35:43 +0200
commite4325f3d984d873d761e770bd4c42cabcd1df88a (patch)
treec61e6cf3aa122bd006b4feb6bada47160ccc6c78 /app/controllers/things_controller.rb
parent7508b08628c435cf80957ae46828615446cdc8be (diff)
downloadoperum-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/things_controller.rb')
-rw-r--r--app/controllers/things_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/things_controller.rb b/app/controllers/things_controller.rb
index 97761aa..4a04249 100644
--- a/app/controllers/things_controller.rb
+++ b/app/controllers/things_controller.rb
@@ -59,7 +59,7 @@ class ThingsController < ApplicationController
private
def set_thing
- @thing = Thing.find(params[:id])
+ @thing = Thing.find(params.expect(:id))
@subtitle = @thing.title
end