1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/models/mongoid/simple_new_dsl_mongoid.rb

26 lines
438 B
Ruby
Raw Permalink Normal View History

class SimpleNewDslMongoid
include Mongoid::Document
include AASM
2013-11-30 18:23:34 -05:00
field :status, :type => String
aasm :column => :status
aasm do
state :unknown_scope, :initial => true
state :new
end
2013-04-21 12:43:03 -04:00
end
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