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
2016-09-18 17:06:10 +03:00

23 lines
408 B
Ruby

class SimpleMongoMapper
include MongoMapper::Document
include AASM
key :status, String
aasm column: :status do
state :unknown_scope, :another_unknown_scope
state :next
end
end
class SimpleMongoMapperMultiple
include MongoMapper::Document
include AASM
key :status, String
aasm :left, column: :status do
state :unknown_scope, :another_unknown_scope
state :next
end
end