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