11 lines
167 B
Ruby
11 lines
167 B
Ruby
|
class SimpleMongoid
|
||
|
include Mongoid::Document
|
||
|
include AASM
|
||
|
|
||
|
field :status, type: String
|
||
|
|
||
|
aasm_column :status
|
||
|
aasm_state :unknown_scope
|
||
|
aasm_state :new
|
||
|
end
|