diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-29 13:07:55 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-29 13:07:55 +0000 |
commit | 3d8c7eb13cf6503cdd34c99fe2a745aaf999599f (patch) | |
tree | fdb5b1e49056f6f2888b87338b60e70d440e66b5 /config/environment.rb | |
parent | 46c160d3b7b121ccda404c56e2cc54f48b16703d (diff) | |
parent | 8bd85eb0b35211a653243ec740a9b3a9368e882f (diff) |
Merge branch 'feature/nils_in_config' into develop
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/environment.rb b/config/environment.rb index 8076464a5..12501eb89 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -150,5 +150,7 @@ require 'world_foi_websites.rb' require 'alaveteli_external_command.rb' require 'quiet_opener.rb' -ExceptionNotification::Notifier.sender_address = Configuration::exception_notifications_from -ExceptionNotification::Notifier.exception_recipients = Configuration::exception_notifications_to +if !Configuration.exception_notifications_from.blank? && !Configuration.exception_notifications_to.blank? + ExceptionNotification::Notifier.sender_address = Configuration::exception_notifications_from + ExceptionNotification::Notifier.exception_recipients = Configuration::exception_notifications_to +end |