Module: Workflow::Callbacks
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveSupport::Callbacks
- Included in:
- Workflow
- Defined in:
- lib/workflow/callbacks.rb,
lib/workflow/callbacks/callback.rb,
lib/workflow/callbacks/transition_callback_wrapper.rb
Defined Under Namespace
Modules: ClassMethods Classes: Callback, TransitionCallbackWrapper
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.
20 21 22 23 24 25 26 |
# File 'lib/workflow/callbacks.rb', line 20 included do attr_reader :transition_context CALLBACK_MAP.keys.each do |type| define_callbacks type, skip_after_callbacks_if_terminated: true end end |