mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
21 lines
386 B
Ruby
21 lines
386 B
Ruby
class NoScopeMongoMapper
|
|
include MongoMapper::Document
|
|
include AASM
|
|
|
|
key :status, String
|
|
|
|
aasm :create_scopes => false, :column => :status do
|
|
state :ignored_scope
|
|
end
|
|
end
|
|
|
|
class NoScopeMongoMapperMultiple
|
|
include MongoMapper::Document
|
|
include AASM
|
|
|
|
key :status, String
|
|
|
|
aasm :left, :create_scopes => false, :column => :status do
|
|
state :ignored_scope
|
|
end
|
|
end
|