lib/datadog/appsec/contrib/rails/patcher.rb in ddtrace-1.11.1 vs lib/datadog/appsec/contrib/rails/patcher.rb in ddtrace-1.12.0
- old
+ new
@@ -70,10 +70,10 @@
# Hook into ActionController::Instrumentation#process_action, which encompasses action filters
module ProcessActionPatch
def process_action(*args)
env = request.env
- context = env['datadog.waf.context']
+ context = env[Datadog::AppSec::Ext::SCOPE_KEY]
return super unless context
# TODO: handle exceptions, except for super