]> git.openstreetmap.org Git - rails.git/blobdiff - config/application.rb
Merge remote-tracking branch 'upstream/pull/3832'
[rails.git] / config / application.rb
index 10a2372dbca005f2d1afbe5e3f0bc5caa6c0e395..22c130c99e566974480b801a639b20c0a0594f87 100644 (file)
@@ -1,6 +1,6 @@
 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"
@@ -21,7 +21,7 @@ Bundler.require(*Rails.groups)
 module OpenStreetMap
   class Application < Rails::Application
     # Initialize configuration defaults for originally generated Rails version.
-    config.load_defaults 6.1
+    config.load_defaults 7.0
 
     # Settings in config/environments/* take precedence over those specified here.
     # Application configuration can go into files in config/initializers