X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f07819d81a7437e58c6e64c2e76ba7e54fad9034..a543e731c0433b2aa0f0f1583f7c70182a084fd5:/config/initializers/sql_session_store.rb?ds=inline diff --git a/config/initializers/sql_session_store.rb b/config/initializers/sql_session_store.rb index d2fc9801a..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 STATUS == :database_offline +unless STATUS == :database_offline SqlSessionStore.session_class = session_class.camelize.constantize end