cartodb-4.29/app/helpers/app_assets_helper.rb

9 lines
266 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +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