2017-05-02 15:37:06 +02:00
|
|
|
# Preview all emails at http://localhost:3000/rails/mailers/avis_mailer
|
|
|
|
class AvisMailerPreview < ActionMailer::Preview
|
2017-06-07 18:18:24 +02:00
|
|
|
def avis_invitation
|
2019-10-16 16:39:19 +02:00
|
|
|
gestionaire = Instructeur.new(id: 1, user: User.new(email: 'jeanmichel.de-chauvigny@exemple.fr'))
|
2018-12-20 16:49:56 +01:00
|
|
|
avis = Avis.new(id: 1, email: 'test@exemple.fr', claimant: gestionaire)
|
|
|
|
avis.dossier = Dossier.new(id: 1)
|
|
|
|
avis.dossier.procedure = Procedure.new(libelle: 'Démarche pour faire des marches')
|
|
|
|
avis.introduction = 'Il faudrait vérifier le certificat de conformité.'
|
|
|
|
AvisMailer.avis_invitation(avis)
|
2017-05-02 15:37:06 +02:00
|
|
|
end
|
|
|
|
end
|