demarches-normaliennes/app/models/mails/refused_mail.rb
2019-07-25 12:25:50 +02:00

17 lines
564 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Mails
class RefusedMail < ApplicationRecord
include MailTemplateConcern
belongs_to :procedure
SLUG = "refused_mail"
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/refused_mail"
DISPLAYED_NAME = 'Accusé de rejet du dossier'
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- a été refusé (--libellé démarche--)'
DOSSIER_STATE = Dossier.states.fetch(:refuse)
def actions_for_dossier(dossier)
[MailTemplateConcern::Actions::REPLY, MailTemplateConcern::Actions::SHOW]
end
end
end