aboutsummaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-09 21:34:15 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-09 21:34:15 +0000
commit4fe1a1d68234197d5303ad7323dd91636b84db14 (patch)
treee66779ac77cd3ab8d9b39f6957e7e06fa2a4ae4e /config/environment.rb
parentbb87d842ec3559483a2c0132dbc0c216e0cb597e (diff)
parent19a0a2fedf68a256084d4dcfd70b9cb9377b9a09 (diff)
Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb
index d15ee9a0e..f2164f1c8 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -131,6 +131,9 @@ I18n.locale = default_locale
I18n.available_locales = available_locales.map {|locale_name| locale_name.to_sym}
I18n.default_locale = default_locale
+# Customise will_paginate URL generation
+WillPaginate::ViewHelpers.pagination_options[:renderer] = 'WillPaginateExtension::LinkRenderer'
+
# Load monkey patches and other things from lib/
require 'ruby19.rb'
require 'tmail_extensions.rb'
@@ -139,10 +142,13 @@ require 'timezone_fixes.rb'
require 'use_spans_for_errors.rb'
require 'make_html_4_compliant.rb'
require 'activerecord_errors_extensions.rb'
-require 'willpaginate_hack.rb'
+require 'willpaginate_extension.rb'
require 'sendmail_return_path.rb'
require 'tnef.rb'
require 'i18n_fixes.rb'
require 'rack_quote_monkeypatch.rb'
require 'world_foi_websites.rb'
require 'alaveteli_external_command.rb'
+
+ExceptionNotification::Notifier.sender_address = MySociety::Config::get('EXCEPTION_NOTIFICATIONS_FROM')
+ExceptionNotification::Notifier.exception_recipients = MySociety::Config::get('EXCEPTION_NOTIFICATIONS_TO')