demarches-normaliennes/app/models/mails/received_mail.rb
2017-03-07 10:27:14 +01:00

15 lines
415 B
Ruby

module Mails
class ReceivedMail < ActiveRecord::Base
include MailTemplateConcern
def name
"Accusé de passage en instruction"
end
def self.default
obj = "Votre dossier TPS N°--numero_dossier-- va être instruit"
body = ActionController::Base.new.render_to_string(template: 'notification_mailer/received_mail')
ReceivedMail.new(object: obj, body: body)
end
end
end