feat(groupe instructeur mailer): add emailing to removed instructeurs
This commit is contained in:
parent
de11d97df9
commit
cbf072961c
11 changed files with 75 additions and 13 deletions
|
@ -11,4 +11,14 @@ class GroupeInstructeurMailer < ApplicationMailer
|
|||
emails = @group.instructeurs.map(&:email)
|
||||
mail(bcc: emails, subject: subject)
|
||||
end
|
||||
|
||||
def remove_instructeur(group, removed_instructeurs, current_instructeur_email)
|
||||
removed_instructeur_emails = removed_instructeurs.map(&:email)
|
||||
@group = group
|
||||
@current_instructeur_email = current_instructeur_email
|
||||
|
||||
subject = "Retrait du groupe \"#{group.label}\""
|
||||
|
||||
mail(bcc: removed_instructeur_emails, subject: subject)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue