X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/92f9d57a4072d11c6995a1291c587a48e6c50362..bc630bca87e81150b71fe02c5af838365db5130e:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 58f0a11c9..9adbaa195 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -24,7 +24,7 @@ class SiteController < ApplicationController end def index - session[:location] ||= OSM.ip_location(request.env["REMOTE_ADDR"]) unless Settings.status == "database_readonly" || Settings.status == "database_offline" + session[:location] ||= OSM.ip_location(request.env["REMOTE_ADDR"]) unless %w[database_readonly database_offline].include?(Settings.status) end def permalink