Extract mailer from name and address to a setting

This commit is contained in:
Fernando Blat
2016-12-23 11:28:53 +01:00
parent d0f6db97d8
commit a07fbc5b41
4 changed files with 9 additions and 2 deletions

View File

@@ -12,7 +12,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 = 'noreply@consul.es'
config.mailer_sender = "#{Setting['mailer_from_name']} <#{Setting['mailer_from_address']}>"
# Configure the class responsible to send e-mails.
config.mailer = 'DeviseMailer'