Class: Sequent::Core::CurrentEvent
- Inherits:
-
Object
- Object
- Sequent::Core::CurrentEvent
- Defined in:
- lib/sequent/core/current_event.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
10 11 12 |
# File 'lib/sequent/core/current_event.rb', line 10 def self.current Thread.current[:sequent_current_event] end |
.current=(event) ⇒ Object
6 7 8 |
# File 'lib/sequent/core/current_event.rb', line 6 def self.current=(event) Thread.current[:sequent_current_event] = event end |