Update README.md since `AASM::Base#states` returns an Array of `AASM::Core::State`
This commit is contained in:
parent
2f0f8e928d
commit
2afbc42a8c
|
@ -523,7 +523,7 @@ All _AASM_ class- and instance-level `aasm` methods accept a state machine selec
|
|||
So, for example, to use inspection on a class level, you have to use
|
||||
|
||||
```ruby
|
||||
SimpleMultipleExample.aasm(:work).states
|
||||
SimpleMultipleExample.aasm(:move).states.map(&:name)
|
||||
# => [:standing, :walking, :running]
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue