Sha256: 3c15c0825ec13c383371b54b131dd94a6942d6c4f7433343d8ecc3975973c3c3
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
module Chartkick class Engine < ::Rails::Engine initializer "precompile", group: :all do |app| if Gem::Version.new(Sprockets::VERSION) >= Gem::Version.new("4.0.0.beta1") app.config.assets.precompile << "chartkick.js" else # use a proc instead of a string app.config.assets.precompile << proc { |path| path == "chartkick.js" } end 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.5.1 | lib/chartkick/engine.rb |
chartkick-1.5.0 | lib/chartkick/engine.rb |