1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/models/redis/redis_simple.rb
Victor Shcherbakov 8e8c6baeaf Update Redis support
Fix #480
2017-07-11 17:41:02 +05:30

20 lines
307 B
Ruby

class RedisSimple
include Redis::Objects
include AASM
value :status
def id
1
end
aasm :column => :status
aasm do
state :alpha, :initial => true
state :beta
state :gamma
event :release do
transitions :from => [:alpha, :beta, :gamma], :to => :beta
end
end
end