2017-03-06 11:51:34 +01:00
|
|
|
class InitiatedMail < ActiveRecord::Base
|
|
|
|
include MailTemplateConcern
|
|
|
|
|
2017-03-07 10:25:28 +01:00
|
|
|
def name
|
2017-03-06 11:51:34 +01:00
|
|
|
"Accusé de réception"
|
2017-03-07 10:25:28 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.default
|
2017-03-06 11:51:34 +01:00
|
|
|
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
|