Fix email bug
This commit is contained in:
parent
358018cd93
commit
78007a438c
1 changed files with 2 additions and 2 deletions
|
|
@ -45,8 +45,8 @@ class EmailSettings < ActiveRecord::Base
|
||||||
|
|
||||||
def parse_template(text, values)
|
def parse_template(text, values)
|
||||||
values.each do |key, value|
|
values.each do |key, value|
|
||||||
text = text.sub"{#{key}}", value
|
text = text.gsub"{#{key}}", value
|
||||||
end
|
end
|
||||||
text
|
text
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue