2018-04-05 12:36:29 +02:00
|
|
|
class AdministrateurMailerPreview < ActionMailer::Preview
|
|
|
|
def activate_before_expiration
|
2022-10-06 11:15:48 +02:00
|
|
|
user = User.new(reset_password_sent_at: Time.zone.now)
|
2018-12-20 16:49:56 +01:00
|
|
|
|
2022-10-06 11:15:48 +02:00
|
|
|
AdministrateurMailer.activate_before_expiration(user, "a4d4e4f4b4d445")
|
2018-04-05 12:36:29 +02:00
|
|
|
end
|
2022-08-16 16:53:41 +02:00
|
|
|
|
|
|
|
def notify_procedure_expires_when_termine_forced
|
|
|
|
email = Administrateur.first.email
|
|
|
|
procedure = Procedure.first
|
|
|
|
AdministrateurMailer.notify_procedure_expires_when_termine_forced(email, procedure)
|
|
|
|
end
|
2018-04-05 12:36:29 +02:00
|
|
|
end
|