mailers: add CTA to templated emails
This commit is contained in:
parent
6195ee41f3
commit
8313752663
6 changed files with 37 additions and 0 deletions
|
@ -3,6 +3,12 @@ module MailTemplateConcern
|
|||
|
||||
include TagsSubstitutionConcern
|
||||
|
||||
module Actions
|
||||
SHOW = :show
|
||||
ASK_QUESTION = :ask_question
|
||||
REPLY = :reply
|
||||
end
|
||||
|
||||
def subject_for_dossier(dossier)
|
||||
replace_tags(subject, dossier)
|
||||
end
|
||||
|
@ -11,6 +17,10 @@ module MailTemplateConcern
|
|||
replace_tags(body, dossier)
|
||||
end
|
||||
|
||||
def actions_for_dossier(dossier)
|
||||
[MailTemplateConcern::Actions::SHOW, MailTemplateConcern::Actions::ASK_QUESTION]
|
||||
end
|
||||
|
||||
def update_rich_body
|
||||
self.rich_body = self.body
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue