Sha256: ad4ecea66bed7c93272b169fdfc6e429cf5e488f141dae69914d6ad5ee949bbc

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

module Chartnado
  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-chartnado.js" }
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chartnado-0.1.0 lib/chartnado/engine.rb
chartnado-0.0.2 lib/chartnado/engine.rb
chartnado-0.0.1 lib/chartnado/engine.rb