state-machines / state_machines

Adds support for creating state machines for attributes on any Ruby class
https://github.com/state-machines/state_machines
MIT License
814 stars 91 forks source link

Method exception doesn't halt transitions #18

Closed sbishep closed 9 years ago

sbishep commented 9 years ago

I have the following defined: before_transition ready_to_save: :screen_name_saved, do: :create_screen_name

I would expect that when create_screen_name raises an exception that the transitions would be halted.

sbishep commented 9 years ago

I believe this was actually an issue with my method returning false and it not halting the transition. I found a work around, so this can be closed