mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Fix doc for inspection methods - they should use .aasm
E.g. job.events should be job.aasm.events
This commit is contained in:
parent
70176a76ee
commit
6eff7dfed1
1 changed files with 4 additions and 4 deletions
|
@ -313,16 +313,16 @@ Given the `Job` class from above:
|
|||
```ruby
|
||||
job = Job.new
|
||||
|
||||
job.states
|
||||
job.aasm.states
|
||||
=> [:sleeping, :running, :cleaning]
|
||||
|
||||
job.states(:permissible => true)
|
||||
job.aasm.states(:permissible => true)
|
||||
=> [:running]
|
||||
job.run
|
||||
job.states(:permissible => true)
|
||||
job.aasm.states(:permissible => true)
|
||||
=> [:cleaning, :sleeping]
|
||||
|
||||
job.events
|
||||
job.aasm.events
|
||||
=> [:run, :clean, :sleep]
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue