ActiveRecord callbacks are the worst. http://i1080.photobucket.com/albums/j322/cawalkerokay/parks-and-recreation-Jean-Ralphio-the-worst-worst-woooorst-1372637673p.gif …
I do think they wouldn't be as bad if we had a simpler and better defined lifecycle
-
-
But things like after_commit expose the need for an object which encapsulates the the transaction you're trying to express IMO
-
as with all things, it's a tradeoff. I'd say 90% of the time they're used, they could be avoided and life would be easier.
- 5 more replies
New conversation -
-
-
How would you better define the lifecycle?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.