Update README.md since `AASM::Base#states` returns an Array of `AASM::Core::State`

This commit is contained in:
Ivan Kataitsev 2018-05-18 11:11:32 -07:00 committed by Anil Kumar Maurya
parent 2f0f8e928d
commit 2afbc42a8c
1 changed files with 1 additions and 1 deletions

View File

@ -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]
```