Mailer preview correction: procedure has now multiple administrators (#3977)

Correction du mailer_preview pour prendre en compte les administrateurs multiples
This commit is contained in:
Pierre de La Morinerie 2019-06-20 10:27:46 +02:00 committed by GitHub
commit 0cfbc75ca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,11 +29,11 @@ class AdministrationMailerPreview < ActionMailer::Preview
private private
def procedure_1 def procedure_1
Procedure.new(id: 10, libelle: "Démarche des marches", administrateur: administrateur) Procedure.new(id: 10, libelle: "Démarche des marches", administrateurs: [administrateur])
end end
def procedure_2 def procedure_2
Procedure.new(id: 20, libelle: "Démarche pieds", administrateur: administrateur) Procedure.new(id: 20, libelle: "Démarche pieds", administrateurs: [administrateur])
end end
def administrateur def administrateur