aasm/spec/models/mongoid/no_scope_mongoid.rb

22 lines
392 B
Ruby
Raw Normal View History

class NoScopeMongoid
include Mongoid::Document
include AASM
2013-11-30 18:23:34 -05:00
field :status, :type => String
aasm :create_scopes => false, :column => :status do
state :ignored_scope
end
end
class NoScopeMongoidMultiple
include Mongoid::Document
include AASM
field :status, :type => String
aasm :left, :create_scopes => false, :column => :status do
state :ignored_scope
end
end