diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-04-17 09:53:14 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-05-07 15:14:38 +0100 |
commit | 1c553c66be65bd3f3107b26ed7f18e9c1f167b9b (patch) | |
tree | 8b515c4c7983c4fcfcaf8d8d8bd90b5024b690a6 /config/environments/development.rb | |
parent | da95c03f9f224ded9e0e3bda2635bcf4f63faf5d (diff) |
Add rack-insightadd_rack_insight
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index b334a1e19..b77fa2fe9 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -54,4 +54,14 @@ Alaveteli::Application.configure do Bullet.add_footer = true end end + + if AlaveteliConfiguration.use_rack_insight_in_development + config.middleware.insert_before ::WhatDoTheyKnow::StripEmptySessions, + Rack::Insight::App, + :secret_key => AlaveteliConfiguration.rack_insight_secret_key, + :database_path => AlaveteliConfiguration.rack_insight_database_path, + :password => nil, + :ip_masks => false + end + end |