]> git.openstreetmap.org Git - rails.git/blob - config/initializers/sql_session_store.rb
d2fc9801af75e4ab976f7d99b5a38085a275e32d
[rails.git] / config / initializers / sql_session_store.rb
1 # Work out which session store adapter to use
2 environment = Rails.configuration.environment
3 adapter = Rails.configuration.database_configuration[environment]["adapter"]
4 session_class = adapter + "_session"
5
6 # Configure SqlSessionStore
7 unless  STATUS == :database_offline
8   SqlSessionStore.session_class = session_class.camelize.constantize
9 end