Sha256: e7f236662b014bcffe97885272ecf61371b90ee9bae09b05bbb73dd295913de1

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 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 => 'redmine_crm') + stylesheet_link_tag('select2', :plugin => 'redmine_crm')
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redmine_crm-0.0.37 lib/redmine_crm/helpers/external_assets_helper.rb
redmine_crm-0.0.36 lib/redmine_crm/helpers/external_assets_helper.rb
redmine_crm-0.0.35 lib/redmine_crm/helpers/external_assets_helper.rb