Refactor NotificationMailer
This commit is contained in:
parent
a4fd629f4a
commit
f6508899de
9 changed files with 128 additions and 70 deletions
|
@ -143,7 +143,7 @@ module Users
|
|||
|
||||
if passage_en_construction? && errors.blank?
|
||||
@dossier.passer_en_construction!
|
||||
NotificationMailer.send_initiated_notification(@dossier).deliver_later
|
||||
NotificationMailer.send_en_construction_notification(@dossier).deliver_later
|
||||
@dossier.groupe_instructeur.instructeurs.with_instant_email_dossier_notifications.each do |instructeur|
|
||||
DossierMailer.notify_new_dossier_depose_to_instructeur(@dossier, instructeur.email).deliver_later
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue