Sha256: 2502f4a5a8a5c1dfe7636517a666c9d0cca588cced5e4685ddcc60ddb9499f45

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

module Chartkick
  class Engine < ::Rails::Engine
    # for assets

    # for importmap
    initializer "chartkick.importmap" do |app|
      if app.config.respond_to?(:assets) && defined?(Importmap) && defined?(Sprockets)
        app.config.assets.precompile << "chartkick.js"
        app.config.assets.precompile << "Chart.bundle.js"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chartkick-5.1.2 lib/chartkick/engine.rb
chartkick-5.1.1 lib/chartkick/engine.rb