1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/models/not_auto_loaded/process.rb
2013-11-30 21:30:07 +01:00

21 lines
324 B
Ruby

module Models
class Process
include AASM
aasm do
state :sleeping
state :running
state :suspended
event :start do
transitions :from => :sleeping, :to => :running
end
event :stop do
transitions :from => :running, :to => :suspended
end
end
end
end