On Friday, March 27, 2015 at 3:47:39 PM UTC-7, Jon Mattingly wrote: > > Awesome, using the symbol for the class name was what I needed, since I > have other associations where the class names don't work. Just to confirm, > of those two ways that you can approach the before_fork that I tried, is > there one that is better? Or are they pretty much the same. The original > post you made was in 2012, so I didn't know if anything had changed. >
Calling DB.disconnect in before_fork should be all you need to do, assuming you are preloading the app. If you aren't preloading the app, you don't need to do anything. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
