diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 28ef1a0..d2772c4 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -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'