demarches-normaliennes/app/models/mails/closed_mail.rb

16 lines
396 B
Ruby
Raw Normal View History

2017-03-06 22:37:37 +01:00
module Mails
class ClosedMail < ActiveRecord::Base
include MailTemplateConcern
def name
"Accusé d'acceptation"
end
def self.default
obj = "Votre dossier TPS N°--numero_dossier-- a été accepté"
body = ActionController::Base.new.render_to_string(template: 'notification_mailer/closed_mail')
ClosedMail.new(object: obj, body: body)
end
end
end