2024-04-29 00:17:15 +02:00
# frozen_string_literal: true
2023-11-08 14:41:22 +01:00
# == Schema Information
#
# Table name: re_instructed_mails
#
# id :integer not null, primary key
# body :text
# subject :string
# created_at :datetime not null
# updated_at :datetime not null
# procedure_id :integer
#
module Mails
class ReInstructedMail < ApplicationRecord
include MailTemplateConcern
belongs_to :procedure , optional : false
validates :subject , tags : true
validates :body , tags : true
SLUG = " re_instructed_mail "
DEFAULT_TEMPLATE_NAME = " notification_mailer/default_templates/re_instructed_mail "
DISPLAYED_NAME = I18n . t ( 'activerecord.models.mail.re_instructed_mail.under_re_instruction' )
DEFAULT_SUBJECT = I18n . t ( 'activerecord.models.mail.re_instructed_mail.default_subject' , dossier_number : '--numéro du dossier--' , procedure_libelle : '--libellé démarche--' )
DOSSIER_STATE = Dossier . states . fetch ( :en_instruction )
end
end