mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Make taxons_controller strong_params method consistent with all other controllers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user