2018-11-20 11:57:51 +01:00
|
|
|
|
class UserMailerPreview < ActionMailer::Preview
|
2018-05-23 11:27:33 +02:00
|
|
|
|
def new_account_warning
|
2018-12-20 16:49:56 +01:00
|
|
|
|
UserMailer.new_account_warning(user)
|
|
|
|
|
end
|
|
|
|
|
|
2020-02-11 18:17:09 +01:00
|
|
|
|
def new_account_warning___with_procedure
|
|
|
|
|
procedure = Procedure.new(libelle: 'Dotation d’Équipement des Territoires Ruraux - Exercice 2019', path: 'dotation-etr')
|
|
|
|
|
UserMailer.new_account_warning(user, procedure)
|
|
|
|
|
end
|
|
|
|
|
|
2021-10-26 13:36:14 +02:00
|
|
|
|
def ask_for_merge
|
|
|
|
|
UserMailer.ask_for_merge(user, 'dircab@territoires.gouv.fr')
|
2019-07-09 17:08:27 +02:00
|
|
|
|
end
|
|
|
|
|
|
2018-12-20 16:49:56 +01:00
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def user
|
|
|
|
|
User.new(id: 10, email: 'test@exemple.fr')
|
2018-05-23 11:27:33 +02:00
|
|
|
|
end
|
|
|
|
|
end
|