Refactor NotificationMailer

This commit is contained in:
Paul Chavard 2021-04-29 19:10:22 +02:00
parent a4fd629f4a
commit f6508899de
9 changed files with 128 additions and 70 deletions

View file

@ -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