2018-01-05 11:16:50 +01:00
|
|
|
class AdministrationMailerPreview < ActionMailer::Preview
|
|
|
|
def dubious_procedures
|
|
|
|
procedures_and_champs = [
|
|
|
|
[Procedure.first, [TypeDeChamp.new(libelle: 'iban'), TypeDeChamp.new(libelle: 'religion')]],
|
|
|
|
[Procedure.last, [TypeDeChamp.new(libelle: 'iban'), TypeDeChamp.new(libelle: 'numéro de carte bleu')]]
|
|
|
|
]
|
|
|
|
AdministrationMailer.dubious_procedures(procedures_and_champs)
|
|
|
|
end
|
2018-01-24 18:15:06 +01:00
|
|
|
|
|
|
|
def invite_admin
|
|
|
|
AdministrationMailer.invite_admin(Administrateur.last, "12345678")
|
|
|
|
end
|
2018-01-05 11:16:50 +01:00
|
|
|
end
|