fix(mailer): preview for DossierMailer#notify_new_draft

This commit is contained in:
Colin Darie 2023-02-02 15:58:53 +01:00
parent 7fa966548c
commit 380a4232c6

View file

@ -1,7 +1,7 @@
# Preview all emails at http://localhost:3000/rails/mailers/dossier_mailer
class DossierMailerPreview < ActionMailer::Preview
def notify_new_draft
DossierMailer.notify_new_draft(draft)
DossierMailer.with(dossier: draft).notify_new_draft
end
def notify_new_answer