X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6a3cadb52d010b333a4acea8942bc4c13394e236..a543e731c0433b2aa0f0f1583f7c70182a084fd5:/config/initializers/sql_session_store.rb diff --git a/config/initializers/sql_session_store.rb b/config/initializers/sql_session_store.rb index 2b9543fc2..8dc40384e 100644 --- a/config/initializers/sql_session_store.rb +++ b/config/initializers/sql_session_store.rb @@ -1,9 +1,8 @@ # Work out which session store adapter to use -environment = Rails.configuration.environment -adapter = Rails.configuration.database_configuration[environment]["adapter"] +adapter = Rails.configuration.database_configuration[Rails.env]["adapter"] session_class = adapter + "_session" # Configure SqlSessionStore -unless OSM_STATUS == :database_offline +unless STATUS == :database_offline SqlSessionStore.session_class = session_class.camelize.constantize end