Make taxons_controller strong_params method consistent with all other controllers

This commit is contained in:
Luis Ramos
2020-02-25 15:26:56 +00:00
parent e23267156d
commit 46025915d5

View File

@@ -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