source: subversion/sites/rails_port/config/initializers/sql_session_store.rb @ 15161

Last change on this file since 15161 was 14586, checked in by tomhughes, 10 years ago

Merge api06 branch to trunk.

File size: 302 bytes
Line 
1# Work out which session store adapter to use
2environment = Rails.configuration.environment
3adapter = Rails.configuration.database_configuration[environment]["adapter"]
4session_class = adapter + "_session"
5
6# Configure SqlSessionStore
7SqlSessionStore.session_class = session_class.camelize.constantize
Note: See TracBrowser for help on using the repository browser.