mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Fix multiple state machines example per class on README
This commit is contained in:
parent
6786b2e2ad
commit
151c6fc47e
1 changed files with 2 additions and 2 deletions
|
@ -516,13 +516,13 @@ simple = SimpleMultipleExample.new
|
|||
|
||||
simple.aasm(:move).current_state
|
||||
# => :standing
|
||||
simple.aasm(:work).current
|
||||
simple.aasm(:work).current_state
|
||||
# => :sleeping
|
||||
|
||||
simple.start
|
||||
simple.aasm(:move).current_state
|
||||
# => :standing
|
||||
simple.aasm(:work).current
|
||||
simple.aasm(:work).current_state
|
||||
# => :processing
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue