method
set_context
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::EventContext
set_context(context_hash)public
No documentation available.
# File activesupport/lib/active_support/event_reporter.rb, line 58
def set_context(context_hash)
new_context = self.context.dup
context_hash.each { |key, value| new_context[key.to_sym] = value }
Fiber[FIBER_KEY] = new_context.freeze
end