Sha256: f1b36de009ff83c2b2646ffd0b654ca55e39e945961f2c5665d88b2e64f20e29

Contents?: true

Size: 616 Bytes

Versions: 14

Compression:

Stored size: 616 Bytes

Contents

module ReportsKit
  class Engine < ::Rails::Engine
    engine_name 'reports_kit'

    initializer 'helper' do
      ActiveSupport.on_load(:action_view) do
        include Helper
      end
    end

    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 += %w(reports_kit.js reports_kit.css)
        else
          app.config.assets.precompile << proc { |path| path.start_with?('reports_kit.') }
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
reports_kit-0.7.0 lib/reports_kit/engine.rb
reports_kit-0.5.0 lib/reports_kit/engine.rb
reports_kit-0.4.1 lib/reports_kit/engine.rb
reports_kit-0.4.0 lib/reports_kit/engine.rb
reports_kit-0.3.3 lib/reports_kit/engine.rb
reports_kit-0.3.2 lib/reports_kit/engine.rb
reports_kit-0.3.1 lib/reports_kit/engine.rb
reports_kit-0.3.0 lib/reports_kit/engine.rb
reports_kit-0.2.0 lib/reports_kit/engine.rb
reports_kit-0.1.0 lib/reports_kit/engine.rb
reports_kit-0.0.4 lib/reports_kit/engine.rb
reports_kit-0.0.3 lib/reports_kit/engine.rb
reports_kit-0.0.2 lib/reports_kit/engine.rb
reports_kit-0.0.1 lib/reports_kit/engine.rb