1
0
Fork 0
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:
Andreas Wenk 2014-12-08 14:58:42 +01:00
parent 745b2650d2
commit 2d5010c7eb

View file

@ -139,7 +139,7 @@ to
```ruby
job = Job.new
job.aasm.events(:permitted => true)
job.aasm.events(:permitted => true).map(&:name)
# => [:run]
```