lib/stateful/builders/event.rb in jbarnette-stateful-1.0.0.200807092012 vs lib/stateful/builders/event.rb in jbarnette-stateful-1.0.0.200812261315
- old
+ new
@@ -24,10 +24,10 @@
froms, to = pair.keys.first, pair.values.first
Array(froms).each { |from| @event.transitions[from] = to }
# covers 'move from any state to :dest'
- @event.transitions.default = to if froms == :any
+ @event.transitions.default = to if froms == :ANY
end
def stay(*names)
names.each { |n| move(n => n) }
end