dossiers: split the dossier creation on several lines

This commit is contained in:
Pierre de La Morinerie 2020-01-06 12:55:22 +01:00
parent 5b2311c851
commit e32a42cfe6

View file

@ -231,7 +231,11 @@ module Users
return redirect_to url_for dossiers_path
end
dossier = Dossier.create!(groupe_instructeur: procedure.defaut_groupe_instructeur, user: current_user, state: Dossier.states.fetch(:brouillon))
dossier = Dossier.create!(
groupe_instructeur: procedure.defaut_groupe_instructeur,
user: current_user,
state: Dossier.states.fetch(:brouillon)
)
if dossier.procedure.for_individual
if current_user.france_connect_information.present?