2015-05-16 00:46:45 -04:00
|
|
|
class NoScope < ActiveRecord::Base
|
|
|
|
include AASM
|
|
|
|
aasm :create_scopes => false do
|
|
|
|
state :pending, :initial => true
|
|
|
|
state :running
|
|
|
|
event :run do
|
|
|
|
transitions :from => :pending, :to => :running
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2015-07-01 07:41:44 -04:00
|
|
|
|
|
|
|
class MultipleNoScope < ActiveRecord::Base
|
|
|
|
include AASM
|
2015-07-20 05:11:16 -04:00
|
|
|
aasm :left, :column => :aasm_state, :create_scopes => false do
|
2015-07-01 07:41:44 -04:00
|
|
|
state :pending, :initial => true
|
|
|
|
state :running
|
|
|
|
event :run do
|
|
|
|
transitions :from => :pending, :to => :running
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|