From 46025915d55537b3999372d45d6449190d35d79c Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 25 Feb 2020 15:26:56 +0000 Subject: [PATCH] Make taxons_controller strong_params method consistent with all other controllers --- app/controllers/spree/admin/taxons_controller.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/controllers/spree/admin/taxons_controller.rb b/app/controllers/spree/admin/taxons_controller.rb index a79dfd28d8..739b2df31a 100644 --- a/app/controllers/spree/admin/taxons_controller.rb +++ b/app/controllers/spree/admin/taxons_controller.rb @@ -117,12 +117,10 @@ module Spree private def taxon_params - params.require(:taxon).permit(permitted_params) - end - - def permitted_params - [:name, :parent_id, :position, :icon, :description, :permalink, - :taxonomy_id, :meta_description, :meta_keywords, :meta_title] + params.require(:taxon).permit( + :name, :parent_id, :position, :icon, :description, :permalink, + :taxonomy_id, :meta_description, :meta_keywords, :meta_title + ) end end end