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

unless ARGV.grep(/assets:precompile/)

  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

end