lib/route_downcaser/railtie.rb in route_downcaser-1.2.3 vs lib/route_downcaser/railtie.rb in route_downcaser-2.0.0

- old
+ new

@@ -1,7 +1,9 @@ +# frozen_string_literal: true + module RouteDowncaser class Railtie < Rails::Railtie - initializer 'add_downcase_route_middleware' do |app| + initializer "add_downcase_route_middleware" do |app| app.config.middleware.use RouteDowncaser::DowncaseRouteMiddleware end end end