Sha256: 8f6a5ebe573a39e9df5fe2c40fd7b6bb7285a8bfe3bd4908bcbf6d200a834d22

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

require 'collection_of'
require "amcharts/version"
require_relative '../app/helpers/amcharts/amcharts_helper'

module AmCharts
  autoload :Axis,         'amcharts/axis'
  autoload :Chart,        'amcharts/chart'
  autoload :ChartBuilder, 'amcharts/chart_builder'
  autoload :Cursor,       'amcharts/cursor'
  autoload :DataSource,   'amcharts/data_source'
  autoload :Graph,        'amcharts/graph'
  autoload :Legend,       'amcharts/legend'
  autoload :Listener,     'amcharts/listener'
  autoload :ScrollBar,    'amcharts/scroll_bar'
  autoload :Settings,     'amcharts/settings'
  autoload :UsesSettings, 'amcharts/uses_settings'

  ActiveSupport::Inflector.inflections do |inflect|
    inflect.acronym "AmCharts"
  end if defined?(ActiveSupport)

  Engine = Class.new(::Rails::Engine) do
    # Load the Amcharts helper when loading ActionView
    initializer 'amcharts.action_controller' do |app|
      ActiveSupport.on_load :action_controller do
        helper AmCharts::AmChartsHelper
      end
    end
  end if defined?(Rails)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amcharts.rb-3.4.7.2 lib/amcharts.rb
amcharts.rb-3.4.7.1 lib/amcharts.rb