aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/searches_controller.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:51:52 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:51:52 +0200
commitdb99d0f00ee95b5dd42ea020f8a52e41ef48cdbc (patch)
treeb2ee6bca0376642436a41f769e7597e89ab83b0e /app/controllers/searches_controller.rb
parent95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4 (diff)
downloadoperum-db99d0f00ee95b5dd42ea020f8a52e41ef48cdbc.tar.gz
operum-db99d0f00ee95b5dd42ea020f8a52e41ef48cdbc.zip
Upgrade rubocop to the real target ruby/rails
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.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 a01fd59..c811f10 100644
--- a/app/controllers/searches_controller.rb
+++ b/app/controllers/searches_controller.rb
@@ -57,6 +57,6 @@ class SearchesController < ApplicationController
end
def search_params
- params.require(:search).permit(:name, :body, :description, :shared)
+ params.expect(search: %i[name body description shared])
end
end