mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
24 lines
414 B
Ruby
24 lines
414 B
Ruby
|
class SimpleNoBrainer
|
||
|
include NoBrainer::Document
|
||
|
include AASM
|
||
|
|
||
|
field :status, type: String
|
||
|
|
||
|
aasm column: :status do
|
||
|
state :unknown_scope, :another_unknown_scope
|
||
|
state :new
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class SimpleNoBrainerMultiple
|
||
|
include NoBrainer::Document
|
||
|
include AASM
|
||
|
|
||
|
field :status, type: String
|
||
|
|
||
|
aasm :left, column: :status do
|
||
|
state :unknown_scope, :another_unknown_scope
|
||
|
state :new
|
||
|
end
|
||
|
end
|