You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
266 B
9 lines
266 B
4 years ago
|
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
|
||
|
|