From 9681437fba2bef5b7f99ab09ce791a9ece38385d Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 25 Feb 2020 18:03:08 +0000 Subject: [PATCH] Permit specific params in tax_categories controller --- app/controllers/spree/admin/tax_categories_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/spree/admin/tax_categories_controller.rb b/app/controllers/spree/admin/tax_categories_controller.rb index 26cff4479f..e4f7e4bff6 100644 --- a/app/controllers/spree/admin/tax_categories_controller.rb +++ b/app/controllers/spree/admin/tax_categories_controller.rb @@ -14,6 +14,12 @@ module Spree end end end + + private + + def permitted_resource_params + params.require(:tax_category).permit(:name, :description, :is_default) + end end end end