demarches-normaliennes/spec/mailers/previews/administrateur_mailer_preview.rb

6 lines
220 B
Ruby
Raw Normal View History

class AdministrateurMailerPreview < ActionMailer::Preview
def activate_before_expiration
AdministrateurMailer.activate_before_expiration(Administrateur.inactive.where.not(reset_password_token: nil).last)
end
end