refactor(routage): simplify goupe_instructeur assign code
This commit is contained in:
parent
eea6b961d7
commit
8b4bef2816
2 changed files with 6 additions and 12 deletions
|
@ -131,9 +131,7 @@ module NewAdministrateur
|
|||
else
|
||||
|
||||
if instructeurs.present?
|
||||
instructeurs.each do |instructeur|
|
||||
instructeur.assign_to_procedure(procedure)
|
||||
end
|
||||
procedure.defaut_groupe_instructeur.instructeurs << instructeurs
|
||||
flash[:notice] = "Les instructeurs ont bien été affectés à la démarche"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue