Add client geo to helper method (#20608)
This commit is contained in:
parent
1b083f39a4
commit
9ba5a5fab0
2 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -23,4 +23,5 @@ class ApplicationMetalController < ActionController::Metal
|
|||
request.headers["X-Cacheable-Client-Geo"]
|
||||
end
|
||||
end
|
||||
helper_method :client_geolocation
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue