]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/doorkeeper.rb
Removed unused translations from Traces namespace
[rails.git] / config / initializers / doorkeeper.rb
index a96e6fd6c68ea28bdb39e7a9c4f34a0949f4dc38..a2df9167f420d37da6f3ab263dbf98efaddc4701 100644 (file)
@@ -1,5 +1,7 @@
 # frozen_string_literal: true
 
+require_relative "../../lib/oauth"
+
 Doorkeeper.configure do
   # Change the ORM that doorkeeper will use (requires ORM extensions installed).
   # Check the list of supported ORMs here: https://github.com/doorkeeper-gem/doorkeeper#orms
@@ -48,7 +50,7 @@ Doorkeeper.configure do
   #   end
   # end
 
-  application_class "Oauth2Application"
+  application_class "Oauth2Application" unless Settings.status == "database_offline"
 
   # Enables polymorphic Resource Owner association for Access Tokens and Access Grants.
   # By default this option is disabled.