pluginaweek / state_machine

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

use_transactions key in ActiveRecord #256

Open aderyabin opened 11 years ago

aderyabin commented 11 years ago

The problem is described in #255. I suggest more pleasurable solution

avit commented 11 years ago

+1. Here's the same fix without whitespace effects:

https://github.com/avit/state_machine/commit/60f9ca14c88c9604b45ae15a19716eefe9b39162

amw commented 10 years ago

Thanks @aderyabin. Looks better than the other PR.

I'm collecting pull requests like this in my fork. Using state_machine in too many of my projects - not ready to migrate to a different gem yet.