Sha256: 0f1be500a91392d981a177061d237cfcc96172aab60995513d5282eee7b63904
Contents?: true
Size: 680 Bytes
Versions: 20
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module CartoHelper ## # Creates a Carto OneClick link, using the configuration link # @param [String] file_link # @return [String] def carto_link(file_link) params = URI.encode_www_form( file: file_link, provider: carto_provider, logo: Settings.APPLICATION_LOGO_URL ) carto_oneclick_host + '?' + params end ## # Removes blank space from provider to accomodate Carto OneClick # def carto_provider application_name.delete(' ') end private ## # Method used to access setting and provide deprecation warnings to migrate def carto_oneclick_host Settings.CARTO_ONECLICK_LINK end end
Version data entries
20 entries across 20 versions & 1 rubygems