Sha256: 6f3935047bee2b184290146a721af8b8bc22910775b8ef26589e0840f7f772af

Contents?: true

Size: 395 Bytes

Versions: 3

Compression:

Stored size: 395 Bytes

Contents

if defined?(::Rails::Engine)
  module KF5
    class Engine < ::Rails::Engine
      initializer "kf5" do
        ActiveSupport.on_load :action_controller do
          include KF5::ControllerHelper
        end
        ActiveSupport.on_load :action_view do
          include KF5::ViewHelper
        end
        Rails.application.config.assets.precompile += %w( kf5.js )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kf5-0.4.0 lib/kf5/engine.rb
kf5-0.3.3 lib/kf5/engine.rb
kf5-0.3.2 lib/kf5/engine.rb