From 4c72d75221da0d86377ae5eae5002b4a106ef372 Mon Sep 17 00:00:00 2001 From: Timo Schilling Date: Thu, 26 Mar 2020 14:11:31 +0100 Subject: [PATCH] Use full qualified constant name (#45) --- lib/aws-xray-sdk/facets/rails/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aws-xray-sdk/facets/rails/railtie.rb b/lib/aws-xray-sdk/facets/rails/railtie.rb index 89905fd..499bc58 100644 --- a/lib/aws-xray-sdk/facets/rails/railtie.rb +++ b/lib/aws-xray-sdk/facets/rails/railtie.rb @@ -7,7 +7,7 @@ class Railtie < ::Rails::Railtie RAILS_OPTIONS = %I[active_record].freeze initializer("aws-xray-sdk.rack_middleware") do |app| - app.middleware.insert 0, Rack::Middleware + app.middleware.insert 0, XRay::Rack::Middleware app.middleware.use XRay::Rails::ExceptionMiddleware end