1 # Work out which session store adapter to use
2 adapter = Rails.configuration.database_configuration[Rails.env]["adapter"]
3 session_class = adapter + "_session"
5 # Configure SqlSessionStore
6 unless STATUS == :database_offline
7 SqlSessionStore.session_class = session_class.camelize.constantize