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
|
|
|
|
|
|
2021-11-17 16:21:55 +01:00
|
|
|
|
def france_connect_merge_confirmation
|
2021-11-23 10:54:59 +01:00
|
|
|
|
UserMailer.france_connect_merge_confirmation('new.exemple.fr', '123456', 15.minutes.from_now)
|
2021-11-17 16:21:55 +01:00
|
|
|
|
end
|
|
|
|
|
|
2022-06-23 13:51:58 +02:00
|
|
|
|
def send_archive
|
|
|
|
|
UserMailer.send_archive(Instructeur.first, Procedure.first, Archive.first)
|
|
|
|
|
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
|