Module: Workflow::Callbacks
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveSupport::Callbacks
- Included in:
- Workflow
- Defined in:
- lib/workflow/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- CALLBACK_MAP =
{ transition: :event, exit: :from, enter: :to }.freeze
Instance Attribute Summary collapse
-
#transition_context ⇒ TransitionContext
readonly
During state transition events, contains a TransitionContext representing the transition underway.
Instance Attribute Details
#transition_context ⇒ TransitionContext (readonly)
During state transition events, contains a TransitionContext representing the transition underway.
17 18 19 20 21 22 23 |
# File 'lib/workflow/callbacks.rb', line 17 included do attr_reader :transition_context CALLBACK_MAP.keys.each do |type| define_callbacks type, skip_after_callbacks_if_terminated: true end end |