Remove instructeur from the group
This commit is contained in:
parent
a6deafd885
commit
a5ffe9f54b
6 changed files with 84 additions and 0 deletions
|
@ -11,4 +11,15 @@ class GroupeInstructeurMailer < ApplicationMailer
|
|||
emails = @group.instructeurs.pluck(:email)
|
||||
mail(bcc: emails, subject: subject)
|
||||
end
|
||||
|
||||
def remove_instructeur(group, instructeur, current_instructeur_email)
|
||||
@email = instructeur.email
|
||||
@group = group
|
||||
@current_instructeur_email = current_instructeur_email
|
||||
|
||||
subject = "Suppression d’un instructeur dans le groupe \"#{group.label}\""
|
||||
|
||||
emails = @group.instructeurs.pluck(:email)
|
||||
mail(bcc: emails, subject: subject)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue