Sha256: d6e1626f26eb88092304a4a002e980bb867d4570014481cf6a15e8a959955a63

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

module ZuoraConnectUi
  # General helpers for application level
  module ApplicationHelper
    def zuo_parameterize(string)
      if Rails::VERSION::STRING.start_with? '5'
        string.parameterize(separator: '_')
      else
        string.parameterize('_')
      end
    end

    def zuo_include_tag
      JAVASCRIPT_INCLUDE
    end

    JAVASCRIPT_INCLUDE = %w[
      https://cdn.zuora.com/anjuna/1.0.0-alpha.29/core/anjuna-core.js
    ].map { |link| '<script src="' + link + '"></script>' }.join("\n").html_safe
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zuora_connect_ui-0.7.1 app/helpers/zuora_connect_ui/application_helper.rb
zuora_connect_ui-0.7.0 app/helpers/zuora_connect_ui/application_helper.rb
zuora_connect_ui-0.6.2 app/helpers/zuora_connect_ui/application_helper.rb