mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Fix example Instance-level inspection
The example for retrieving only permitted events returns an Array of Aasm Objects but not an Array of event names as symbols. This is fixed.
This commit is contained in:
parent
745b2650d2
commit
2d5010c7eb
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ to
|
||||||
```ruby
|
```ruby
|
||||||
job = Job.new
|
job = Job.new
|
||||||
|
|
||||||
job.aasm.events(:permitted => true)
|
job.aasm.events(:permitted => true).map(&:name)
|
||||||
# => [:run]
|
# => [:run]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue