feat(groupe instructeur mailer): make two kind of notifications for removed instructeur

This commit is contained in:
Eric Leroy-Terquem 2023-02-15 11:57:35 +01:00
parent 5be58c8223
commit a46faf8cdf
10 changed files with 66 additions and 44 deletions

View file

@ -35,7 +35,7 @@ module Instructeurs
if groupe_instructeur.remove(instructeur)
flash[:notice] = "Linstructeur « #{instructeur.email} » a été retiré du groupe."
GroupeInstructeurMailer
.notify_removed_instructeurs(groupe_instructeur, [instructeur], current_user.email)
.notify_removed_instructeur(groupe_instructeur, instructeur, current_user.email)
.deliver_later
GroupeInstructeurMailer