]> git.openstreetmap.org Git - rails.git/commitdiff
Fix new rubocopy warnings
authorTom Hughes <tom@compton.nu>
Tue, 26 Apr 2022 17:10:52 +0000 (18:10 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 26 Apr 2022 17:10:52 +0000 (18:10 +0100)
config/application.rb

index 10a2372dbca005f2d1afbe5e3f0bc5caa6c0e395..b801c8b5f5fe915c1adb659095c1270343a4bdee 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"