Skip to content

Commit

Permalink
fix variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 24, 2019
1 parent ece4e52 commit 6c127ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/mailable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ module ClassMethods

def format_message_text(template: nil, title: nil, contact_name: nil, name: nil, url: nil, reset_url: nil)
ActionController::Base.render(
assigns: { title: title, contact_name: name, name: symbol, url: url, reset_url: reset_url },
assigns: { title: title, contact_name: name, name: name, url: url, reset_url: reset_url },
template: template,
layout: false
)
end

def format_message_html(template: nil, title: nil, contact_name: nil, name: nil, url: nil, reset_url: nil)
input = ActionController::Base.render(
assigns: { title: title, contact_name: name, name: symbol, url: url, reset_url: reset_url },
assigns: { title: title, contact_name: name, name: name, url: url, reset_url: reset_url },
template: template,
layout: "application"
)
Expand Down

0 comments on commit 6c127ac

Please sign in to comment.