Merge f11f1fc44a into 609f2fd564
This commit is contained in:
commit
ddeae89d0f
10 changed files with 182 additions and 43 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