module RouteDowncaser
  class Railtie < Rails::Railtie
    initializer "add_downcase_route_middleware" do |app|
      app.config.middleware.use 'RouteDowncaser::DowncaseRouteMiddleware'
    end
  end
end

module RouteDowncaser
  class Railtie < Rails::Railtie
    initializer "add_downcase_route_middleware" do |app|
      app.config.middleware.use RouteDowncaser::DowncaseRouteMiddleware
    end
  end
end

Fix middleware class deprecation warning
Fix middleware class deprecation warning

Rails needs an actual class reference instead of just strings, this change removes the following warning:
```
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references.  For example:

  "RouteDowncaser::DowncaseRouteMiddleware" => RouteDowncaser::DowncaseRouteMiddleware
```