From 9b3fca763de25b0d9b2c37ec61c197fdef387bb4 Mon Sep 17 00:00:00 2001 From: Walt Jones Date: Thu, 21 Dec 2023 15:11:11 -0500 Subject: [PATCH] fix rack deprecation warning --- lib/rollbar/middleware/rails/show_exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rollbar/middleware/rails/show_exceptions.rb b/lib/rollbar/middleware/rails/show_exceptions.rb index 3e6e79b3..fe51029b 100644 --- a/lib/rollbar/middleware/rails/show_exceptions.rb +++ b/lib/rollbar/middleware/rails/show_exceptions.rb @@ -7,7 +7,7 @@ module ShowExceptions def render_exception_with_rollbar(env, exception, wrapper = nil) key = 'action_dispatch.show_detailed_exceptions' - if exception.is_a?(ActionController::RoutingError) && env[key] + if exception.is_a?(ActionController::RoutingError) && env.params[key.to_s] scope = extract_scope_from(env) Rollbar.scoped(scope) do