pluginaweek / state_machine

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

Include object class in state machine transition error #324

Open ka8725 opened 9 years ago

ka8725 commented 9 years ago

In our project we have a lot of related objects with state machine. And it's rather hard to figure out which object has incorrect state with a message like this:

"Cannot transition status via :to_completed from :provisioning (Reason(s): status is invalid". The Pull Request is proposal to add the object class to the message to make it more informative.

suan commented 9 years ago

Related / duplicate of #273