Add mail preview and small fix

This commit is contained in:
Mathieu Magnin 2017-01-23 15:49:19 +01:00
parent 29de9b0b55
commit 7e24adbca0
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,3 @@
%hmtl
%html
%body
= yield
= yield

View file

@ -1,5 +1,11 @@
class NotificationMailerPreview < ActionMailer::Preview
def dossier_received
NotificationMailer.dossier_received(Dossier.last)
end
def dossier_validated
NotificationMailer.dossier_validated(Dossier.last)
end
end