Class: DeviseMailer
- Inherits:
-
Devise::Mailer
- Object
- Devise::Mailer
- DeviseMailer
- Defined in:
- app/mailers/devise_mailer.rb
Instance Method Summary collapse
Instance Method Details
#headers_for(action, opts) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'app/mailers/devise_mailer.rb', line 2 def headers_for(action, opts) headers = super(action, opts) if resource.full_name.present? headers[:to] = "\"#{resource.full_name}\" <#{resource.email}>" @email = headers[:to] end headers end |