We can't use Rails.application.config here because the initializers
run after ActionMailer::Base has been set up.
config.logstasher.logger_path = LOGSTASH_PATH
config.logstasher.log_controller_parameters = true
end
-
- # Set the host and protocol for all action mailer urls
- config.action_mailer.default_url_options = { :host => SERVER_URL, :protocol => SERVER_PROTOCOL }
end
end
:domain => "localhost",
:enable_starttls_auto => false
}
+
+# Set the host and protocol for all action mailer urls
+ActionMailer::Base.default_url_options = { :host => SERVER_URL, :protocol => SERVER_PROTOCOL }