mailers: streamline the NotificationMailer
Notifications are now only for demarche-templated emails.
This commit is contained in:
parent
1d1a15bf70
commit
e5303fd986
10 changed files with 49 additions and 33 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue