feat(groupe instructeur mailer): add emailing to added instructeurs
This commit is contained in:
parent
7c86df9d35
commit
343cb5fce6
10 changed files with 90 additions and 12 deletions
|
@ -22,6 +22,10 @@ module Instructeurs
|
|||
else
|
||||
groupe_instructeur.add(instructeur)
|
||||
flash[:notice] = "L’instructeur « #{instructeur_email} » a été affecté au groupe."
|
||||
|
||||
GroupeInstructeurMailer
|
||||
.notify_added_instructeurs(groupe_instructeur, [instructeur], current_user.email)
|
||||
.deliver_later
|
||||
end
|
||||
|
||||
redirect_to instructeur_groupe_path(procedure, groupe_instructeur)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue