Controllers
This commit is contained in:
parent
ee9c918ee8
commit
061da95aaf
2 changed files with 96 additions and 3 deletions
|
@ -128,7 +128,7 @@ module Users
|
|||
@dossier = dossier
|
||||
@no_description = true
|
||||
|
||||
if @dossier.individual.update(individual_params)
|
||||
if @dossier.update(dossier_params)
|
||||
@dossier.update!(autorisation_donnees: true, identity_updated_at: Time.zone.now)
|
||||
flash.notice = t('.identity_saved')
|
||||
|
||||
|
@ -589,8 +589,8 @@ module Users
|
|||
render :siret
|
||||
end
|
||||
|
||||
def individual_params
|
||||
params.require(:individual).permit(:gender, :nom, :prenom, :birthdate)
|
||||
def dossier_params
|
||||
params.require(:dossier).permit(:for_tiers, :mandataire_first_name, :mandataire_last_name, individual_attributes: [:gender, :nom, :prenom, :birthdate, :email, :notification_method])
|
||||
end
|
||||
|
||||
def siret_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue