mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
18 lines
333 B
Ruby
18 lines
333 B
Ruby
class DynamoidMultiple
|
|
include Dynamoid::Document
|
|
include AASM
|
|
|
|
field :status
|
|
|
|
attr_accessor :default
|
|
|
|
aasm :left, :column => :status
|
|
aasm :left do
|
|
state :alpha, :initial => true
|
|
state :beta
|
|
state :gamma
|
|
event :release do
|
|
transitions :from => [:alpha, :beta, :gamma], :to => :beta
|
|
end
|
|
end
|
|
end
|