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/things_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/things_controller.rb') diff --git a/app/controllers/things_controller.rb b/app/controllers/things_controller.rb index f9e7674..cc9b5b0 100644 --- a/app/controllers/things_controller.rb +++ b/app/controllers/things_controller.rb @@ -64,8 +64,8 @@ class ThingsController < ApplicationController end def thing_params - params.require(:thing).permit(:target, :title, :publisher, :address, :year, :url, :access, - :authors, :insideof, :pages, :rate, :status, :kind, :bought_at, - :editors, :note, :where_is_it, tag_ids: []) + params.expect(thing: [:target, :title, :publisher, :address, :year, :url, :access, + :authors, :insideof, :pages, :rate, :status, :kind, :bought_at, + :editors, :note, :where_is_it, { tag_ids: [] }]) end end -- cgit v1.2.3