Sha256: 2144833c90c933d79caba2e952753080372bea4f4ead470e1674950ba7d215cf

Contents?: true

Size: 572 Bytes

Versions: 21

Compression:

Stored size: 572 Bytes

Contents

module RedmineCrm
  module ExternalAssetsHelper
    include ActionView::Helpers::JavaScriptHelper

    def select2_assets
      return if @select2_tag_included
      @select2_tag_included = true
      javascript_include_tag('select2', plugin: GEM_NAME) +
        stylesheet_link_tag('select2', plugin: GEM_NAME) +
        javascript_include_tag('select2_helpers', plugin: GEM_NAME)
    end

    def chartjs_assets
      return if @chartjs_tag_included
      @chartjs_tag_included = true
      javascript_include_tag('Chart.bundle.min', plugin: GEM_NAME)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
redmine_crm-0.0.38 lib/redmine_crm/helpers/external_assets_helper.rb