diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 25b6a124f..0985dc3f9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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. diff --git a/app/controllers/application_metal_controller.rb b/app/controllers/application_metal_controller.rb index ce26da2eb..17459f9f6 100644 --- a/app/controllers/application_metal_controller.rb +++ b/app/controllers/application_metal_controller.rb @@ -23,4 +23,5 @@ class ApplicationMetalController < ActionController::Metal request.headers["X-Cacheable-Client-Geo"] end end + helper_method :client_geolocation end