mailers: streamline the NotificationMailer

Notifications are now only for demarche-templated emails.
This commit is contained in:
Pierre de La Morinerie 2018-11-20 10:50:25 +00:00 committed by gregoirenovel
parent 1d1a15bf70
commit e5303fd986
10 changed files with 49 additions and 33 deletions

View file

@ -1,5 +1,13 @@
# Preview all emails at http://localhost:3000/rails/mailers/dossier_mailer
class DossierMailerPreview < ActionMailer::Preview
def notify_new_draft
DossierMailer.notify_new_draft(Dossier.last)
end
def notify_new_answer
DossierMailer.notify_new_answer(Dossier.last)
end
def notify_deletion_to_user
DossierMailer.notify_deletion_to_user(DeletedDossier.last, "user@ds.fr")
end

View file

@ -2,8 +2,4 @@ class NotificationMailerPreview < ActionMailer::Preview
def send_notification
NotificationMailer.send_initiated_notification(Dossier.last)
end
def send_draft_notification
NotificationMailer.send_draft_notification(Dossier.last)
end
end