Sha256: 6a3aa537fac344abd6ce61165f2d55e9310715dbfcb79e57290aaeba8995adea

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

require 'chartjs/chart_helpers'
require 'chartjs/axis_helpers'

module Chartjs
  class Railtie < Rails::Railtie
    initializer 'chartjs.chart_helpers' do
      ActionView::Base.send :include, Chartjs::ChartHelpers
      ActionView::Base.send :include, Chartjs::AxisHelpers
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chartjs-ror-1.0.1 lib/chartjs/railtie.rb