Mails: move to their own namespace
This commit is contained in:
parent
335caed65e
commit
02bbf0543f
15 changed files with 95 additions and 85 deletions
15
app/models/mails/initiated_mail.rb
Normal file
15
app/models/mails/initiated_mail.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue