summaryrefslogtreecommitdiff
path: root/config/initializers/session_store.rb
blob: ed4c8dec11324e491846d32a39eb1004f405dfa1 (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/).any?

  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