Skip to content

Commit

Permalink
Merge pull request #72 from billhorsman/inspection-doc-fix
Browse files Browse the repository at this point in the history
Fix doc for inspection methods - they should use .aasm
  • Loading branch information
alto committed Jun 12, 2013
2 parents 70176a7 + 6eff7df commit bf02c8b
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 bf02c8b

Please sign in to comment.