diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/session_store.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 4ae1e21..b454120 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,10 @@ # Be sure to restart your server when you modify this file. LeapWeb::Application.config.session_store CouchRestSessionStore + +CouchRestSessionStore.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 |