Skip to content

Commit

Permalink
fix rack deprecation warning (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed Jan 3, 2024
1 parent dc2a396 commit 0eced3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rollbar/middleware/rails/show_exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0eced3d

Please sign in to comment.