mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-28 13:18:49 +02:00
Devise fetches the from value in the custom configuration
This commit is contained in:
parent
21ef364f8a
commit
9d0dbb81f5
|
@ -18,7 +18,7 @@ Devise.setup do |config|
|
||||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
# 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
|
# note that it will be overwritten if you use your own mailer class
|
||||||
# with default "from" parameter.
|
# 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.
|
# Configure the class responsible to send e-mails.
|
||||||
# config.mailer = 'Devise::Mailer'
|
# config.mailer = 'Devise::Mailer'
|
||||||
|
|
Loading…
Reference in a new issue