ActiveRecord callbacks are the worst. http://i1080.photobucket.com/albums/j322/cawalkerokay/parks-and-recreation-Jean-Ralphio-the-worst-worst-woooorst-1372637673p.gif …
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.
-
Agreed.
- 4 more replies
New conversation -
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.