module CssSplitter
  class Engine < ::Rails::Engine
    isolate_namespace CssSplitter

    initializer 'css_splitter.sprockets_engine', after: 'sprockets.environment', group: :all do |app|
      app.config.assets.configure do |assets|
        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

module CssSplitter
  class Engine < ::Rails::Engine
    initializer 'css_splitter.sprockets_engine', after: 'sprockets.environment', group: :all do |app|
      app.config.assets.configure do |assets|
        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

Remove isolate_namespace to fix unresolved split_stylesheet_link_tag
Remove isolate_namespace to fix unresolved split_stylesheet_link_tag
