Devise fetches the from value in the custom configuration

This commit is contained in:
Jérémy Lecour 2018-08-13 16:27:49 +02:00 committed by Jérémy Lecour
parent 21ef364f8a
commit 9d0dbb81f5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = 'chexpire@example.com'
config.mailer_sender = Rails.configuration.chexpire.fetch("mailer_default_from")
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'