From db99d0f00ee95b5dd42ea020f8a52e41ef48cdbc Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 1 Jul 2025 21:51:52 +0200 Subject: Upgrade rubocop to the real target ruby/rails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/controllers/searches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/searches_controller.rb') 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 -- cgit v1.2.3