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
|
@ -313,16 +313,16 @@ Given the `Job` class from above:
|
||||||
```ruby
|
```ruby
|
||||||
job = Job.new
|
job = Job.new
|
||||||
|
|
||||||
job.states
|
job.aasm.states
|
||||||
=> [:sleeping, :running, :cleaning]
|
=> [:sleeping, :running, :cleaning]
|
||||||
|
|
||||||
job.states(:permissible => true)
|
job.aasm.states(:permissible => true)
|
||||||
=> [:running]
|
=> [:running]
|
||||||
job.run
|
job.run
|
||||||
job.states(:permissible => true)
|
job.aasm.states(:permissible => true)
|
||||||
=> [:cleaning, :sleeping]
|
=> [:cleaning, :sleeping]
|
||||||
|
|
||||||
job.events
|
job.aasm.events
|
||||||
=> [:run, :clean, :sleep]
|
=> [:run, :clean, :sleep]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue