parent
2343db254d
commit
3f45416d48
8 changed files with 163 additions and 36 deletions
|
|
@ -49,6 +49,8 @@ class EmailSettings < ActiveRecord::Base
|
|||
parse_template(template, values)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def parse_template(text, values)
|
||||
values.each do |key, value|
|
||||
text = text.gsub "{#{key}}", value unless text.blank?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue