24 lines
842 B
Ruby
24 lines
842 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: received_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 ReceivedMail < ApplicationRecord
|
|
include MailTemplateConcern
|
|
|
|
belongs_to :procedure, optional: false
|
|
|
|
SLUG = "received_mail"
|
|
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/received_mail"
|
|
DISPLAYED_NAME = I18n.t('activerecord.models.mail.received_mail.under_instruction')
|
|
DEFAULT_SUBJECT = I18n.t('activerecord.models.mail.received_mail.default_subject', dossier_number: '--numéro du dossier--', procedure_libelle: '--libellé démarche--')
|
|
DOSSIER_STATE = Dossier.states.fetch(:en_instruction)
|
|
end
|
|
end
|