mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
improve legibility of the callback chain
This commit is contained in:
parent
b7b4d295a3
commit
05456908bf
1 changed files with 14 additions and 14 deletions
28
README.md
28
README.md
|
@ -15,21 +15,21 @@ AASM started as the acts_as_state_machine plugin but has evolved into a more gen
|
|||
|
||||
The callback chain & order on a successful event looks like:
|
||||
|
||||
oldstate:exit*
|
||||
event:before
|
||||
__find transition, if possible__
|
||||
transition:on_transition*
|
||||
oldstate:before_exit
|
||||
newstate:before_enter
|
||||
newstate:enter*
|
||||
__update state__
|
||||
event:success*
|
||||
oldstate:after_exit
|
||||
newstate:after_enter
|
||||
event:after
|
||||
obj:aasm_event_fired*
|
||||
oldstate:exit*
|
||||
event:before
|
||||
__find transition, if possible__
|
||||
transition:on_transition*
|
||||
oldstate:before_exit
|
||||
newstate:before_enter
|
||||
newstate:enter*
|
||||
__update state__
|
||||
event:success*
|
||||
oldstate:after_exit
|
||||
newstate:after_enter
|
||||
event:after
|
||||
obj:aasm_event_fired*
|
||||
|
||||
(*) marks old callbacks
|
||||
(*) marks old callbacks
|
||||
|
||||
|
||||
## Download ##
|
||||
|
|
Loading…
Reference in a new issue