1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

cleaned up the specs

This commit is contained in:
Thorsten Böttger 2011-10-15 17:45:24 +02:00
parent 31258e7636
commit 766e985158
5 changed files with 5 additions and 8 deletions

View file

@ -0,0 +1,19 @@
module Models
class Process
include AASM
aasm_state :sleeping
aasm_state :running
aasm_state :suspended
aasm_event :start do
transitions :from => :sleeping, :to => :running
end
aasm_event :stop do
transitions :from => :running, :to => :suspended
end
end
end