2015-01-15 23:10:49 +00:00
|
|
|
class SimpleMongoMapper
|
|
|
|
include MongoMapper::Document
|
|
|
|
include AASM
|
|
|
|
|
|
|
|
key :status, String
|
|
|
|
|
|
|
|
aasm column: :status do
|
2016-09-18 14:06:10 +00:00
|
|
|
state :unknown_scope, :another_unknown_scope
|
2015-01-15 23:10:49 +00:00
|
|
|
state :next
|
|
|
|
end
|
|
|
|
end
|
2015-07-11 10:10:04 +00:00
|
|
|
|
|
|
|
class SimpleMongoMapperMultiple
|
|
|
|
include MongoMapper::Document
|
|
|
|
include AASM
|
|
|
|
|
|
|
|
key :status, String
|
|
|
|
|
|
|
|
aasm :left, column: :status do
|
2016-09-18 14:06:10 +00:00
|
|
|
state :unknown_scope, :another_unknown_scope
|
2015-07-11 10:10:04 +00:00
|
|
|
state :next
|
|
|
|
end
|
|
|
|
end
|