mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
fixed error in readme
This commit is contained in:
parent
e8671ae448
commit
2c96cbc2ec
1 changed files with 2 additions and 3 deletions
|
@ -141,12 +141,11 @@ class Job
|
|||
end
|
||||
|
||||
event :sleep do
|
||||
transitions :from => :running, :to => :sleeping, :guard => :too_dirty?
|
||||
transitions :from => :running, :to => :sleeping, :guard => :cleaning_needed?
|
||||
end
|
||||
end
|
||||
|
||||
def too_dirty?
|
||||
... yes, too dirty
|
||||
def cleaning_needed?
|
||||
false
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue