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

Added class name to InvalidTransition exception messages. #273

Open replaid opened 11 years ago

replaid commented 11 years ago

I use state_machine with multiple models, and I lost some time chasing a state transition exception coming from a different class than I'd thought. It would be very useful to me to have the class name in that exception message.

replaid commented 11 years ago

@obrie What do you think?