Add client geo to helper method (#20608)

This commit is contained in:
Ben Halpern 2024-02-08 12:51:37 -05:00 committed by GitHub
parent 1b083f39a4
commit 9ba5a5fab0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -278,6 +278,7 @@ class ApplicationController < ActionController::Base
request.headers["X-Cacheable-Client-Geo"]
end
end
helper_method :client_geolocation
def forward_to_app_config_domain
# Let's only redirect get requests for this purpose.

View file

@ -23,4 +23,5 @@ class ApplicationMetalController < ActionController::Metal
request.headers["X-Cacheable-Client-Geo"]
end
end
helper_method :client_geolocation
end