diff options
Diffstat (limited to 'app/controllers/searches_controller.rb')
| -rw-r--r-- | app/controllers/searches_controller.rb | 2 |
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 |
