mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
8e8c6baeaf
Fix #480
20 lines
322 B
Ruby
20 lines
322 B
Ruby
class RedisMultiple
|
|
include Redis::Objects
|
|
include AASM
|
|
|
|
value :status
|
|
|
|
def id
|
|
1
|
|
end
|
|
|
|
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
|