add mailer preview
This commit is contained in:
parent
ede61ee22b
commit
3e7cef63c6
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,16 @@ class DossierMailerPreview < ActionMailer::Preview
|
||||||
DossierMailer.notify_brouillon_deletion(User.new(email: "usager@example.com"), dossier_hashes)
|
DossierMailer.notify_brouillon_deletion(User.new(email: "usager@example.com"), dossier_hashes)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def notify_automatic_deletion_to_user
|
||||||
|
dossier_hashes = [dossier, dossier].map(&:hash_for_deletion_mail)
|
||||||
|
DossierMailer.notify_automatic_deletion_to_user("usager@example.com", dossier_hashes)
|
||||||
|
end
|
||||||
|
|
||||||
|
def notify_automatic_deletion_to_administration
|
||||||
|
dossier_hashes = [dossier, dossier].map(&:hash_for_deletion_mail)
|
||||||
|
DossierMailer.notify_automatic_deletion_to_administration("admin@example.com", dossier_hashes)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def deleted_dossier
|
def deleted_dossier
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue