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

15 lines
456 B
Ruby

module Mails
class WithoutContinuationMail < ApplicationRecord
include MailTemplateConcern
def name
"Accusé de classement sans suite"
end
def self.default
obj = "Votre dossier TPS N°--numero_dossier-- a été classé sans suite"
body = ActionController::Base.new.render_to_string(template: 'notification_mailer/without_continuation_mail')
WithoutContinuationMail.new(object: obj, body: body)
end
end
end