method
set_context
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::ErrorReporter
set_context(...)public
Update the execution context that is accessible to error subscribers. Any context passed to #handle, #record, or #report will be merged with the context set here.
Rails.error.set_context(section: "checkout", user_id: @user.id)