X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd6f00b069af5a7b87227ea4c3401dc461d7311a..7f955a4aca277350a70bb95f0ca97e64d7d808c4:/config/initializers/sql_session_store.rb?ds=sidebyside diff --git a/config/initializers/sql_session_store.rb b/config/initializers/sql_session_store.rb index 986037afe..d2fc9801a 100644 --- a/config/initializers/sql_session_store.rb +++ b/config/initializers/sql_session_store.rb @@ -4,4 +4,6 @@ adapter = Rails.configuration.database_configuration[environment]["adapter"] session_class = adapter + "_session" # Configure SqlSessionStore -SqlSessionStore.session_class = session_class.camelize.constantize +unless STATUS == :database_offline + SqlSessionStore.session_class = session_class.camelize.constantize +end