module RedmineCrm::ExternalAssetsHelper

Public Instance Methods

chartjs_assets() click to toggle source
# File lib/redmine_crm/helpers/external_assets_helper.rb, line 13
def chartjs_assets
  return if @chartjs_tag_included
  @chartjs_tag_included = true
  javascript_include_tag('Chart.bundle.min', plugin: GEM_NAME)
end
select2_assets() click to toggle source
# File lib/redmine_crm/helpers/external_assets_helper.rb, line 5
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