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.
cartodb/app/helpers/maps_api_v2_helper.rb

11 lines
256 B

module MapsApiV2Helper
def maps_api_v2_template
maps_api_v2_url('{user}')
end
def maps_api_v2_url(username)
maps_api_v2_url = Cartodb.get_config(:maps_api_v2, 'url')
"#{maps_api_v2_url}/user/{user}" if maps_api_v2_url.present?
end
end