bae7a2dd3c
`default template_path:` was the documented way, but wasn’t working (and there was no hint in the source code of Devise that it could work) Therefore, let’s override `template_paths` instead and stop worrying
9 lines
286 B
Ruby
9 lines
286 B
Ruby
class DeviseUserMailer < Devise::Mailer
|
|
helper :application # gives access to all helpers defined within `application_helper`.
|
|
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
|
|
layout 'mailers/layout'
|
|
|
|
def template_paths
|
|
['devise_mailer']
|
|
end
|
|
end
|