mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
23 lines
360 B
Ruby
23 lines
360 B
Ruby
class SimpleMongoMapper
|
|
include MongoMapper::Document
|
|
include AASM
|
|
|
|
key :status, String
|
|
|
|
aasm column: :status do
|
|
state :unknown_scope
|
|
state :next
|
|
end
|
|
end
|
|
|
|
class SimpleMongoMapperMultiple
|
|
include MongoMapper::Document
|
|
include AASM
|
|
|
|
key :status, String
|
|
|
|
aasm :left, column: :status do
|
|
state :unknown_scope
|
|
state :next
|
|
end
|
|
end
|