summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-09-19 10:41:58 -0700
committerjessib <jessib@riseup.net>2013-09-19 10:41:58 -0700
commit16b8966a0df0104390ce95e35f1bb17f173f8d4d (patch)
tree58d277ef2dc9d3b8731501b91773cee04272bd26 /config
parent9e451421420abf520622e779443fb113ea3c4ce7 (diff)
parent165e417bc6ba66d51d74764db7b59279fb6a923f (diff)
Merge pull request #82 from azul/feature/sessions-expire
Feature/sessions expire
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] =