Sha256: dbfcfcdfaa010c870bf24bab3d1c39ed666e8743e995292c9dd3b2bd336d9fe3

Contents?: true

Size: 350 Bytes

Versions: 2

Compression:

Stored size: 350 Bytes

Contents

module Chartkick
  class Engine < ::Rails::Engine
    initializer "precompile", group: :all do |app|
      # use a proc instead of a string
      app.config.assets.precompile << proc { |path| path == "chartkick.js" }
    end

    initializer "helper" do
      ActiveSupport.on_load(:action_view) do
        include Helper
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chartkick-1.4.1 lib/chartkick/engine.rb
chartkick-1.4.0 lib/chartkick/engine.rb