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 50{}.freeze
-
FIBER_KEY =
# File 'activesupport/lib/active_support/event_reporter.rb', line 51:event_reporter_context
Class Method Summary
Class Method Details
.clear
[ GitHub ]# File 'activesupport/lib/active_support/event_reporter.rb', line 65
def clear Fiber[FIBER_KEY] = EMPTY_CONTEXT end
.context
[ GitHub ]# File 'activesupport/lib/active_support/event_reporter.rb', line 54
def context Fiber[FIBER_KEY] || EMPTY_CONTEXT end