Module: Mokio::Concerns::Models::Mailer
- Extended by:
- ActiveSupport::Concern
- Included in:
- Mailer
- Defined in:
- lib/mokio/concerns/models/mailer.rb
Overview
Concern for Mailer model
Instance Method Summary collapse
-
#template_msg ⇒ Object
Returns email template in html, replacing as follows: 1.
Instance Method Details
#template_msg ⇒ Object
Returns email template in html, replacing as follows:
-
%name% to object.name
-
%email% to object.email
-
%title% to object.title
-
%message% to object.message
26 27 28 |
# File 'lib/mokio/concerns/models/mailer.rb', line 26 def template_msg self.template.gsub('%name%', self.name).gsub('%email%', self.email).gsub('%title%', self.title).gsub('%message%', self.).html_safe end |