feat(groupe instructeur mailer): make two kind of notifications for removed instructeur
This commit is contained in:
parent
5be58c8223
commit
a46faf8cdf
10 changed files with 66 additions and 44 deletions
|
@ -35,7 +35,7 @@ module Instructeurs
|
|||
if groupe_instructeur.remove(instructeur)
|
||||
flash[:notice] = "L’instructeur « #{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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue