Do not load exception notifier in development mode.
This commit is contained in:
parent
8db221ca5f
commit
b71fcdf371
1 changed files with 9 additions and 8 deletions
|
@ -27,12 +27,13 @@ url_options.merge!({:port => Foodsoft.config[:port]}) if Foodsoft.config[:port]
|
||||||
Foodsoft::Application.configure do
|
Foodsoft::Application.configure do
|
||||||
config.action_mailer.default_url_options = url_options
|
config.action_mailer.default_url_options = url_options
|
||||||
|
|
||||||
# Configuration of the exception_notification plugin
|
if Rails.env !~ /development|test/
|
||||||
# Mailadresses are set in config/app_config.yml
|
# Configuration of the exception_notification plugin
|
||||||
config.middleware.use ExceptionNotifier,
|
# Mailadresses are set in config/app_config.yml
|
||||||
:email_prefix => Foodsoft.config[:notification]['email_prefix'],
|
config.middleware.use ExceptionNotifier,
|
||||||
:sender_address => Foodsoft.config[:notification]['sender_address'],
|
:email_prefix => Foodsoft.config[:notification]['email_prefix'],
|
||||||
:exception_recipients => Foodsoft.config[:notification]['error_recipients']
|
:sender_address => Foodsoft.config[:notification]['sender_address'],
|
||||||
|
:exception_recipients => Foodsoft.config[:notification]['error_recipients']
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue