diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-12-09 16:42:02 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2012-12-11 11:08:19 +1100 |
commit | 8b1526a48af9e3e48d1f1154ab0a9a928c52a19a (patch) | |
tree | df7d5e9a70b0b868c6feb8c74ff1c9968c5547e6 /config/initializers/session_store.rb | |
parent | 7a3638128b6dd67111b7d471b19e59f5d838cee0 (diff) |
Run the Rails 3 generator
Diffstat (limited to 'config/initializers/session_store.rb')
-rw-r--r-- | config/initializers/session_store.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 8cfa333f2..ef1752c13 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,15 +1,5 @@ # Be sure to restart your server when you modify this file. - -# Your secret key for verifying cookie session data integrity. -# If you change this key, all old sessions will become invalid! -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. - -ActionController::Base.session = { - :key => '_wdtk_cookie_session', - :secret => Configuration::cookie_store_session_secret -} -ActionController::Base.session_store = :cookie_store +Rails.application.config.session_store :cookie_store, :key => '_wdtk_cookie_session' # Insert a bit of middleware code to prevent uneeded cookie setting. require "#{Rails.root}/lib/whatdotheyknow/strip_empty_sessions" |