Sha256: 4c8a8441e6a0c94294b7def2f2716cab2e0abd4c5f676fe785c1f436403f1cf0
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
module Chartkick class Engine < ::Rails::Engine initializer "precompile", group: :all do |app| if Rails::VERSION::MAJOR >= 5 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chartkick-1.4.2 | lib/chartkick/engine.rb |