summaryrefslogtreecommitdiff
path: root/config/initializers/session_store.rb
blob: 8b63e5b6f839adf8ca5758a1fb5b00afca91a11d (plain)
1
2
3
4
5
6
7
8
9
10
11
# Be sure to restart your server when you modify this file.

LeapWeb::Application.config.session_store CouchRest::Session::Store,
  expire_after: 1800

CouchRest::Session::Store.configure do |conf|
  conf.environment = Rails.env
  conf.connection_config_file = File.join(Rails.root, 'config', 'couchdb.yml')
  conf.connection[:prefix] =
    Rails.application.class.to_s.underscore.gsub(/\/.*/, '')
end