Class | StateMachine::TransitionCollection |
In: |
lib/state_machine/transition_collection.rb
|
Parent: | Array |
skip_actions | [R] | Whether to skip running the action for each transition‘s machine |
skip_after | [R] | Whether to skip running the after callbacks |
use_transaction | [R] | Whether transitions should wrapped around a transaction block |
Creates a new collection of transitions that can be run in parallel. Each transition must be for a different attribute.
Configuration options:
Runs each of the collection‘s transitions in parallel.
All transitions will run through the following steps:
If a block is passed to this method, that block will be called instead of invoking each transition‘s action.