mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
23 lines
354 B
Ruby
23 lines
354 B
Ruby
|
class SimpleMongoid
|
||
|
include Mongoid::Document
|
||
|
include AASM
|
||
|
|
||
|
field :status, type: String
|
||
|
|
||
|
aasm_column :status
|
||
|
aasm_state :unknown_scope
|
||
|
aasm_state :new
|
||
|
end
|
||
|
|
||
|
class SimpleNewDslMongoid
|
||
|
include Mongoid::Document
|
||
|
include AASM
|
||
|
|
||
|
field :status, type: String
|
||
|
|
||
|
aasm :column => :status
|
||
|
aasm do
|
||
|
state :unknown_scope
|
||
|
state :new
|
||
|
end
|
||
|
end
|