2013-08-06 10:55:32 -04:00
|
|
|
class NoScopeMongoid
|
|
|
|
include Mongoid::Document
|
|
|
|
include AASM
|
|
|
|
|
2013-11-30 18:23:34 -05:00
|
|
|
field :status, :type => String
|
2013-08-06 10:55:32 -04:00
|
|
|
|
|
|
|
aasm :create_scopes => false, :column => :status do
|
|
|
|
state :ignored_scope
|
|
|
|
end
|
|
|
|
end
|
2015-07-10 08:16:58 -04:00
|
|
|
|
|
|
|
class NoScopeMongoidMultiple
|
|
|
|
include Mongoid::Document
|
|
|
|
include AASM
|
|
|
|
|
|
|
|
field :status, :type => String
|
|
|
|
|
|
|
|
aasm :left, :create_scopes => false, :column => :status do
|
|
|
|
state :ignored_scope
|
|
|
|
end
|
|
|
|
end
|