mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
15 lines
323 B
Ruby
15 lines
323 B
Ruby
class SimpleExample
|
|
include AASM
|
|
aasm do
|
|
state :initialised, :initial => true
|
|
state :filled_out
|
|
state :authorised
|
|
|
|
event :fill_out do
|
|
transitions :from => :initialised, :to => :filled_out
|
|
end
|
|
event :authorise do
|
|
transitions :from => :filled_out, :to => :authorised
|
|
end
|
|
end
|
|
end
|