Sha256: 16ec2db494a1192122852d501902ef4522aa2cd78656660c6d28057b56ee2df5
Contents?: true
Size: 597 Bytes
Versions: 8
Compression:
Stored size: 597 Bytes
Contents
module Chartkick class Engine < ::Rails::Engine initializer "precompile", group: :all do |app| if app.config.respond_to?(:assets) if defined?(Sprockets) && 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 end initializer "helper" do ActiveSupport.on_load(:action_view) do include Helper end end end end
Version data entries
8 entries across 8 versions & 1 rubygems