refactor session store initializer

pull/1130/head
Martin Linkhorst 11 years ago
parent d11d8542f0
commit 5b933ca2ab
  1. 12
      config/initializers/session_store.rb

@ -29,8 +29,10 @@
# Be sure to restart your server when you modify this file.
if Rails.env.production?
OpenProject::Application.config.session_store ActionDispatch::Session::CacheStore
else
OpenProject::Application.config.session_store :cookie_store, :key => '_open_project_session'
end
session_store = Rails.env.production? ? :cache_store : :cookie_store
session_options = {
:key => '_open_project_session'
}
OpenProject::Application.config.session_store session_store, session_options

Loading…
Cancel
Save