Mails: move to their own namespace

This commit is contained in:
Simon Lehericey 2017-03-06 22:37:37 +01:00
parent 335caed65e
commit 02bbf0543f
15 changed files with 95 additions and 85 deletions

View file

@ -0,0 +1,15 @@
module Mails
class InitiatedMail < ActiveRecord::Base
include MailTemplateConcern
def name
"Accusé de réception"
end
def self.default
obj = "Votre dossier TPS N°--numero_dossier-- a été bien reçu"
body = ActionController::Base.new.render_to_string(template: 'notification_mailer/initiated_mail')
InitiatedMail.new(object: obj, body: body)
end
end
end