demarches-normaliennes/app/mailers/devise_user_mailer.rb
Frederic Merizen bae7a2dd3c [Fix #2068] Use mail templates from application rather than devise
`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
2018-06-18 10:42:03 +02:00

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