instance method
set_context
Ruby on Rails 7.0.10
Since v7.0.10Signature
set_context(...)
Update the execution context that is accessible to error subscribers
Rails.error.set_context(section: "checkout", user_id: @user.id)
See ActiveSupport::ExecutionContext.set
Parameters
-
...req
Source
# File activesupport/lib/active_support/error_reporter.rb, line 88
def set_context(...)
ActiveSupport::ExecutionContext.set(...)
end
Defined in activesupport/lib/active_support/error_reporter.rb line 88
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::ErrorReporter