Module: CartoHelper

Defined in:
app/helpers/carto_helper.rb

Instance Method Summary collapse

Instance Method Details

Deprecated.

Creates a Carto OneClick link, using the configuration link

Parameters:

  • file_link (String)

Returns:

  • (String)


9
10
11
12
13
14
15
16
# File 'app/helpers/carto_helper.rb', line 9

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

#carto_providerObject

Deprecated.

Removes blank space from provider to accomodate Carto OneClick



22
23
24
# File 'app/helpers/carto_helper.rb', line 22

def carto_provider
  application_name.delete(" ")
end