Sha256: 78c687d6bf00e7b0d723b17dbdd77361eb7c861720a5f837638003e7f9fbc468

Contents?: true

Size: 363 Bytes

Versions: 20

Compression:

Stored size: 363 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.new{|path| path == "chartkick.js" }
    end

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

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
chartkick-1.3.2 lib/chartkick/engine.rb
chartkick-1.3.1 lib/chartkick/engine.rb
chartkick-1.3.0 lib/chartkick/engine.rb
chartkick-1.2.5 lib/chartkick/engine.rb
chartkick-1.2.4 lib/chartkick/engine.rb
chartkick-1.2.3 lib/chartkick/engine.rb
chartkick-1.2.2 lib/chartkick/engine.rb
chartkick-1.2.1 lib/chartkick/engine.rb
chartkick-1.2.0 lib/chartkick/engine.rb
chartkick-1.1.3 lib/chartkick/engine.rb
chartkick-1.1.2 lib/chartkick/engine.rb
chartkick-1.1.1 lib/chartkick/engine.rb
chartkick-1.1.0 lib/chartkick/engine.rb
chartkick-1.0.1 lib/chartkick/engine.rb
chartkick-1.0.0 lib/chartkick/engine.rb
chartkick-0.0.5 lib/chartkick/engine.rb
chartkick-0.0.4 lib/chartkick/engine.rb
chartkick-0.0.3 lib/chartkick/engine.rb
chartkick-0.0.2 lib/chartkick/engine.rb
chartkick-0.0.1 lib/chartkick/engine.rb