Skip to content

Commit

Permalink
Fix doc for inspection methods - they should use .aasm
Browse files Browse the repository at this point in the history
E.g. job.events should be job.aasm.events
  • Loading branch information
billhorsman committed Jun 12, 2013
1 parent 70176a7 commit 6eff7df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -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]
```

Expand Down

0 comments on commit 6eff7df

Please sign in to comment.