Fix doc for inspection methods - they should use .aasm

E.g. job.events should be job.aasm.events
This commit is contained in:
Bill Horsman 2013-06-11 14:51:05 +02:00
parent 70176a76ee
commit 6eff7dfed1
1 changed files with 4 additions and 4 deletions

View File

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