Method: Simple::Workflow::CurrentContext#current_context
- Defined in:
- lib/simple/workflow/current_context.rb
#current_context ⇒ Object
Returns the current context.
This method never returns nil - it raises a ContextMissingError exception if the context was not initialized (via Simple::Workflow.with_context).
7 8 9 |
# File 'lib/simple/workflow/current_context.rb', line 7 def current_context Thread.current[:"Simple::Workflow.current_context"] || raise(ContextMissingError) end |