summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-09-17 12:13:40 +0200
committerAzul <azul@leap.se>2013-09-17 12:13:40 +0200
commit5433d2889b2aa1fe3eaa1003c2268edbddd04c2e (patch)
tree25c6bb1accae797fd198b54293671ebe6597bbd6 /config
parentb7ab1a00f7a8ac15d364a6597701f5fcc891ca78 (diff)
use new couchrest session store - expire after 30min
Diffstat (limited to 'config')
-rw-r--r--config/initializers/session_store.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index b454120..8b63e5b 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -1,8 +1,9 @@
# Be sure to restart your server when you modify this file.
-LeapWeb::Application.config.session_store CouchRestSessionStore
+LeapWeb::Application.config.session_store CouchRest::Session::Store,
+ expire_after: 1800
-CouchRestSessionStore.configure do |conf|
+CouchRest::Session::Store.configure do |conf|
conf.environment = Rails.env
conf.connection_config_file = File.join(Rails.root, 'config', 'couchdb.yml')
conf.connection[:prefix] =