Open h0jeZvgoxFepBQ2C opened 10 years ago
Your expectations are wrong in this case, not the gem.
Since any number of before and after transition handlers can be registered - nowhere does the documentation state that there is only one singleton handler which gets substituted in place.
You can modify the callbacks array of the machine, or use the :do => :method syntax and override the method instead of trying to replace a nameless proc.
State Machines in inherited classes cannot be overriden in child classes.
See following example: