diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/environment.rb | 4 | ||||
-rw-r--r-- | config/routes.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb index 86c66ad18..ec6a4096f 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -82,6 +82,10 @@ Rails::Initializer.run do |config| # Make Active Record use UTC-base instead of local time config.active_record.default_timezone = :utc + config.after_initialize do + require 'routing_filters.rb' + end + # See Rails::Configuration for more options ENV['RECAPTCHA_PUBLIC_KEY'] = MySociety::Config::get("RECAPTCHA_PUBLIC_KEY", 'x'); ENV['RECAPTCHA_PRIVATE_KEY'] = MySociety::Config::get("RECAPTCHA_PRIVATE_KEY", 'x'); diff --git a/config/routes.rb b/config/routes.rb index 451c13e3b..6dfd03634 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -195,8 +195,8 @@ ActionController::Routing::Routes.draw do |map| rule.admin_rule_update '/admin/censor/update', :action => 'update' rule.admin_rule_destroy '/admin/censor/destroy/:censor_rule_id', :action => 'destroy' end - # map.filter('locale') + # map.filter('conditionallyprependlocale') # Allow downloading Web Service WSDL as a file with an extension # instead of a file named 'wsdl' |