21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-04-26 22:10:50 +02:00

Merge pull request #78 from Evolix/issue-77

Devise fetches the from value in the custom configuration
This commit is contained in:
Jérémy Lecour 2018-08-13 16:38:08 +02:00 committed by GitHub
commit 8c3924832f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'