
module Pagelime
  module Rails
    class Engine < ::Rails::Engine
      engine_name :pagelime
      # paths["config/routes"] << 'config/routes.rb'
      initializer "pagelime.initialize" do |app|
        ::Pagelime::Rails.initialize!
      end
    end
  end
end

module Pagelime
  module Rails
    class Engine < ::Rails::Engine
      engine_name :pagelime
      
      initializer "pagelime.initialize" do |app|
        ::Pagelime::Rails.initialize!
        
        app.middleware.use Rack::Pagelime
      end
    end
  end
end
Use new Pagelime Rack routes and filtering instead of duplicating
Use new Pagelime Rack routes and filtering instead of duplicating
