Only rename logo param if it is present
This commit is contained in:
parent
686e035431
commit
64dccbab5c
1 changed files with 3 additions and 1 deletions
|
@ -286,7 +286,9 @@ class Admin::ProceduresController < AdminController
|
||||||
else
|
else
|
||||||
params.require(:procedure).permit(*editable_params, :duree_conservation_dossiers_dans_ds, :duree_conservation_dossiers_hors_ds, :for_individual, :path)
|
params.require(:procedure).permit(*editable_params, :duree_conservation_dossiers_dans_ds, :duree_conservation_dossiers_hors_ds, :for_individual, :path)
|
||||||
end
|
end
|
||||||
|
if permited_params[:logo]
|
||||||
permited_params[:logo_active_storage] = permited_params.delete(:logo)
|
permited_params[:logo_active_storage] = permited_params.delete(:logo)
|
||||||
|
end
|
||||||
permited_params
|
permited_params
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue