Merge pull request #106 from germanolucas/master

Update mailer_patch.rb
This commit is contained in:
Karel Picman 2018-12-19 14:40:40 +01:00 committed by GitHub
commit 9ab09c2777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ module RedmineCustomWorkflows
if text_body || html_body if text_body || html_body
mail headers do |format| mail headers do |format|
format.text { render :text => text_body } if text_body format.text { render :text => text_body } if text_body
format.html { render :html => html_body } if html_body format.html { render :text => html_body } if html_body
end end
elsif template_name elsif template_name
template_params.each { |k,v| instance_variable_set("@#{k}", v) } template_params.each { |k,v| instance_variable_set("@#{k}", v) }