1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/models/mongo_mapper/simple_mongo_mapper.rb

24 lines
360 B
Ruby
Raw Normal View History

2015-01-15 18:10:49 -05:00
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