From 13f8d53fc2a86f061ab63c0a3b24973f87604351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Nordstrand?= Date: Mon, 2 Sep 2024 12:24:43 +0200 Subject: [PATCH] The position should be before 0 not after. --- lib/request_queue_time/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request_queue_time/railtie.rb b/lib/request_queue_time/railtie.rb index a05f41f..6fd79be 100644 --- a/lib/request_queue_time/railtie.rb +++ b/lib/request_queue_time/railtie.rb @@ -1,7 +1,7 @@ module RequestQueueTime class Railtie < Rails::Railtie initializer "RequestQueueTime.request_middleware" do |app| - app.middleware.insert_after 0, RequestQueueTime::Middleware + app.middleware.insert_before 0, RequestQueueTime::Middleware end end end