]> git.openstreetmap.org Git - rails.git/blobdiff - config/application.rb
Merge remote-tracking branch 'upstream/pull/3789'
[rails.git] / config / application.rb
index 10a2372dbca005f2d1afbe5e3f0bc5caa6c0e395..b801c8b5f5fe915c1adb659095c1270343a4bdee 100644 (file)
@@ -1,6 +1,6 @@
 require_relative "boot"
 
 require_relative "boot"
 
-if ENV["OPENSTREETMAP_STATUS"] == "database_offline"
+if ENV.fetch("OPENSTREETMAP_STATUS", nil) == "database_offline"
   require "active_model/railtie"
   require "active_job/railtie"
   require "active_storage/engine"
   require "active_model/railtie"
   require "active_job/railtie"
   require "active_storage/engine"