2013-01-06 17:29:35 -05:00
|
|
|
class SimpleNewDslMongoid
|
|
|
|
include Mongoid::Document
|
|
|
|
include AASM
|
|
|
|
|
2013-11-30 18:23:34 -05:00
|
|
|
field :status, :type => String
|
2013-01-06 17:29:35 -05:00
|
|
|
|
|
|
|
aasm :column => :status
|
|
|
|
aasm do
|
2015-02-22 06:13:01 -05:00
|
|
|
state :unknown_scope, :initial => true
|
2013-01-06 17:29:35 -05:00
|
|
|
state :new
|
|
|
|
end
|
2013-04-21 12:43:03 -04:00
|
|
|
end
|
2015-07-10 08:16:58 -04:00
|
|
|
|
|
|
|
class SimpleNewDslMongoidMultiple
|
|
|
|
include Mongoid::Document
|
|
|
|
include AASM
|
|
|
|
|
|
|
|
field :status, :type => String
|
|
|
|
|
|
|
|
aasm :left, :column => :status
|
|
|
|
aasm :left do
|
|
|
|
state :unknown_scope, :initial => true
|
|
|
|
state :new
|
|
|
|
end
|
|
|
|
end
|