Sha256: cc5f7cb20f41933bbbe8e92dbd367b656d8734bfb6f518d3915d05eabe1684b7
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
module CssSplitter class Engine < ::Rails::Engine initializer 'css_splitter.sprockets_engine', after: 'sprockets.environment', group: :all do |app| if app.config.assets.public_methods.include? :configure app.config.assets.configure do |assets| assets.register_bundle_processor 'text/css', CssSplitter::SprocketsEngine end else app.assets.register_bundle_processor 'text/css', CssSplitter::SprocketsEngine end end initializer 'css_splitter.action_controller' do |app| ActiveSupport.on_load :action_controller do helper CssSplitter::ApplicationHelper end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css_splitter-0.4.5 | lib/css_splitter/engine.rb |