refactor(groupe instructeur mailer): rename mailer methods
This commit is contained in:
parent
cbf072961c
commit
5be58c8223
13 changed files with 38 additions and 38 deletions
|
@ -1,7 +1,7 @@
|
|||
class GroupeInstructeurMailer < ApplicationMailer
|
||||
layout 'mailers/layout'
|
||||
|
||||
def remove_instructeurs(group, removed_instructeurs, current_instructeur_email)
|
||||
def notify_group_when_instructeurs_removed(group, removed_instructeurs, current_instructeur_email)
|
||||
@removed_instructeur_emails = removed_instructeurs.map(&:email)
|
||||
@group = group
|
||||
@current_instructeur_email = current_instructeur_email
|
||||
|
@ -12,12 +12,12 @@ class GroupeInstructeurMailer < ApplicationMailer
|
|||
mail(bcc: emails, subject: subject)
|
||||
end
|
||||
|
||||
def remove_instructeur(group, removed_instructeurs, current_instructeur_email)
|
||||
def notify_removed_instructeurs(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}\""
|
||||
subject = "Vous avez été retiré du groupe \"#{group.label}\" de la démarche \"#{group.procedure.libelle}\""
|
||||
|
||||
mail(bcc: removed_instructeur_emails, subject: subject)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue