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/application.rb | |
parent | da95c03f9f224ded9e0e3bda2635bcf4f63faf5d (diff) |
Add rack-insightadd_rack_insight
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index 472077f06..a16e5eb0a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -77,6 +77,7 @@ module Alaveteli ENV['RECAPTCHA_PUBLIC_KEY'] = ::AlaveteliConfiguration::recaptcha_public_key ENV['RECAPTCHA_PRIVATE_KEY'] = ::AlaveteliConfiguration::recaptcha_private_key + # Insert a bit of middleware code to prevent uneeded cookie setting. require "#{Rails.root}/lib/whatdotheyknow/strip_empty_sessions" config.middleware.insert_before ::ActionDispatch::Cookies, WhatDoTheyKnow::StripEmptySessions, :key => '_wdtk_cookie_session', :path => "/", :httponly => true |