aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-06-17 05:33:18 +0100
committerRobin Houston <robin@lenny.robin>2011-06-17 05:33:18 +0100
commitd5b554f6bbb4b959ca86088d6f651a4b314b1b0e (patch)
tree5e05b241132bef49cc3ab0e5c9efe7d118658eeb
parentaca2d7bef113f6ed4fb79022e76214c1ef9ab35e (diff)
Get rid of (at least some instances of) the deprecation warning that says :session_key is deprecated
-rw-r--r--config/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 80f0f144a..33be4a060 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -65,7 +65,7 @@ Rails::Initializer.run do |config|
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
- :session_key => '_wdtk_cookie_session',
+ :key => '_wdtk_cookie_session',
:secret => MySociety::Config.get("COOKIE_STORE_SESSION_SECRET", 'this default is insecure as code is open source, please override for live sites in config/general; this will do for local development')
}
config.action_controller.session_store = :cookie_store