Sha256: a1f4d5fc8e8a7561d090de9c97bc103e563cab82fe2a253b762d2da4bddd1d85
Contents?: true
Size: 650 Bytes
Versions: 8
Compression:
Stored size: 650 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems