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

24 lines
400 B
Ruby
Raw Permalink Normal View History

class ValidStateName
2012-11-28 04:42:41 -05:00
include AASM
aasm do
state :invalid, :initial => true
state :valid
event :valid do
transitions :to => :valid, :from => [:invalid]
end
end
end
2015-06-26 03:46:58 -04:00
class ValidStateNameMultiple
include AASM
aasm(:left) do
state :invalid, :initial => true
state :valid
event :valid do
transitions :to => :valid, :from => [:invalid]
end
end
end