aasm/spec/models/redis/redis_multiple.rb

21 lines
322 B
Ruby
Raw Permalink Normal View History

2017-07-11 10:42:49 +00:00
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