diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-15 11:00:36 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-11-15 11:00:36 +0000 |
commit | be5e69a7dccaa6c76408f9b7883980bd79bdba28 (patch) | |
tree | b517392e10aabaa3f44303d738b05e1e94aa5909 /config/environment.rb | |
parent | 2a96a18f3fd7dea4936d5056bf24a32be0263d9a (diff) |
First skeletal version of separate mail handling library.
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb index 492446a43..728d2ffb7 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -92,6 +92,8 @@ Rails::Initializer.run do |config| require 'routing_filters.rb' end + config.autoload_paths << "#{RAILS_ROOT}/lib/mail_handler" + # See Rails::Configuration for more options ENV['RECAPTCHA_PUBLIC_KEY'] = Configuration::recaptcha_public_key ENV['RECAPTCHA_PRIVATE_KEY'] = Configuration::recaptcha_private_key @@ -154,6 +156,7 @@ require 'rack_quote_monkeypatch.rb' require 'world_foi_websites.rb' require 'alaveteli_external_command.rb' require 'quiet_opener.rb' +require 'mail_handler' if !Configuration.exception_notifications_from.blank? && !Configuration.exception_notifications_to.blank? ExceptionNotification::Notifier.sender_address = Configuration::exception_notifications_from |