13 lines
192 B
Ruby
13 lines
192 B
Ruby
|
class SimpleStateMachine
|
||
|
include AASM
|
||
|
|
||
|
aasm do
|
||
|
state :init, :initial => true
|
||
|
state :failed
|
||
|
|
||
|
event :failed do
|
||
|
transitions :from => :init, :to => :failed
|
||
|
end
|
||
|
end
|
||
|
end
|