pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 507 forks source link

More robust yard handler for transitions #283

Open ancorgs opened 10 years ago

ancorgs commented 10 years ago

At least in some configurations (always in my case), :if and :unless are read by the transition handler as strings including the colon, which leads to the generation of spurious states in graphviz. This patch fix the problem and is safe (unless somebody wants to have an state called :":unless" :smile: )