Module: Verge::Client::AssetHelper

Defined in:
lib/verge/client.rb

Instance Method Summary collapse

Instance Method Details

#verge_javascript_tagObject

Return the javascript tag that include the token if the user’s authenticated



9
10
11
# File 'lib/verge/client.rb', line 9

def verge_javascript_tag
  "<script type=\"text/javascript\" src=\"#{Verge::Client.server_url}/token.js\"></script>"
end