Upgraded exception notifier plugin.
This commit is contained in:
parent
2d7d0d3b94
commit
d09d3922c1
18 changed files with 20 additions and 471 deletions
|
|
@ -46,4 +46,7 @@ Foodsoft::Application.configure do
|
|||
|
||||
# Send deprecation notices to registered listeners
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
# Use sendmail to avoid ssl cert problems
|
||||
config.action_mailer.delivery_method = :sendmail
|
||||
end
|
||||
|
|
|
|||
|
|
@ -23,11 +23,16 @@ url_options = {
|
|||
:protocol => Foodsoft.config[:protocol]
|
||||
}
|
||||
url_options.merge!({:port => Foodsoft.config[:port]}) if Foodsoft.config[:port]
|
||||
ActionMailer::Base.default_url_options = url_options
|
||||
|
||||
# Configuration of the exception_notification plugin
|
||||
# Mailadresses are set in config/foodsoft.yaml
|
||||
ExceptionNotifier.exception_recipients = Foodsoft.config[:notification]['error_recipients']
|
||||
ExceptionNotifier.sender_address = Foodsoft.config[:notification]['sender_address']
|
||||
ExceptionNotifier.email_prefix = Foodsoft.config[:notification]['email_prefix']
|
||||
Foodsoft::Application.configure do
|
||||
config.action_mailer.default_url_options = url_options
|
||||
|
||||
# Configuration of the exception_notification plugin
|
||||
# Mailadresses are set in config/app_config.yml
|
||||
config.middleware.use ExceptionNotifier,
|
||||
:email_prefix => Foodsoft.config[:notification]['email_prefix'],
|
||||
:sender_address => Foodsoft.config[:notification]['sender_address'],
|
||||
:exception_recipients => Foodsoft.config[:notification]['error_recipients']
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue