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