Class: ActiveSupport::EventContext
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/event_reporter.rb |
Constant Summary
-
EMPTY_CONTEXT =
# File 'activesupport/lib/active_support/event_reporter.rb', line 48{}.freeze
-
FIBER_KEY =
# File 'activesupport/lib/active_support/event_reporter.rb', line 49:event_reporter_context
Class Method Summary
Class Method Details
.clear
[ GitHub ]# File 'activesupport/lib/active_support/event_reporter.rb', line 63
def clear Fiber[FIBER_KEY] = EMPTY_CONTEXT end
.context
[ GitHub ]# File 'activesupport/lib/active_support/event_reporter.rb', line 52
def context Fiber[FIBER_KEY] || EMPTY_CONTEXT end