demarches-normaliennes/app/models/initiated_mail.rb

14 lines
368 B
Ruby
Raw Normal View History

class InitiatedMail < ActiveRecord::Base
include MailTemplateConcern
2017-03-07 10:25:28 +01:00
def name
"Accusé de réception"
2017-03-07 10:25:28 +01:00
end
def self.default
obj = "Votre dossier TPS N°--numero_dossier-- a été bien reçu"
2017-03-07 10:25:28 +01:00
body = ActionController::Base.new.render_to_string(template: 'notification_mailer/initiated_mail')
InitiatedMail.new(object: obj, body: body)
end
end