[LRUG] Handling opening and closing of transactions manually in ActiveRecord

Tim Cowlishaw tim at timcowlishaw.co.uk
Fri Oct 8 04:58:06 PDT 2010


On Fri, Oct 8, 2010 at 12:52 PM, Matthew Willson <matthew at playlouder.com> wrote:

> If you want a dirty-but-clever-hack solution, you could probably do something with continuations (in MRI 1.8) or coroutines (ie Fibers in 1.9) to wrap something in a block based only on separate before/after callbacks :) [I now see someone beat me to that, heh]


Of course, continuations! All the talk of Fibers should really have reminded me.

Thanks Matt, will have a look....



More information about the Chat mailing list