pluginaweek/state_machine — Issue #158: Event named :duration doesn't seem to work?
Author: MatthiasStumpp
Created: 2012-01-25 06:44:54+00:00
State: open

I have the following state:

state_machine :initial => :initial do
state :initial do
transition :to => :start_date, :on => :start_date
transition :to => :start_time, :on => :start_time
transition :to => :end_date, :on => :end_date
transition :to => :end_time, :on => :end_time
transition :to => :duration, :on => :duration
transition :to => :start_day, :on => :start_day
transition :to => :end_day, :on => :end_day
end
state :start_date
end
state ....
end

When an event is fired, e.g. :start_date, the sm does not transit to state :start_date. However, It does so when removing line "transition :to => :duration, :on => :duration" or changing the event name to something different than :duration, e.g. duration1.