aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/searches_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/searches_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/searches_controller.rb')
-rw-r--r--app/controllers/searches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb
index ff738c2..1585cce 100644
--- a/app/controllers/searches_controller.rb
+++ b/app/controllers/searches_controller.rb
@@ -52,7 +52,7 @@ class SearchesController < ApplicationController
protected
def set_search
- @search = Search.find(params[:id])
+ @search = Search.find(params.expect(:id))
@subtitle = @search.name
end