cartodb-4.42/app/helpers/app_assets_helper.rb

9 lines
266 B
Ruby
Raw Permalink Normal View History

2024-04-06 13:25:13 +08:00
module AppAssetsHelper
def app_assets_base_url
asset_host = CartoDB.get_absolute_url(Cartodb.get_config(:app_assets, 'asset_host'))
base_url = asset_host.present? ? asset_host : CartoDB.base_domain_from_request(request)
"#{base_url}/assets"
end
end