Thank-you, That is exactly where i've put it I didn't get an error last night but had thought to ask as i wasn't exactly sure and it may help others to see that it does go in the startup/initialize method. dave. On 10 December 2010 04:47, Jeremy Evans <[email protected]> wrote:
> On Dec 8, 9:55 pm, dave lilley <[email protected]> wrote: > > Just a quick question about the... > > Thread.new{loop{sleep 60; DB.get(1)}} > > does this go in the initialize method? of sample code i pasted in the > > initial message or does it go else where. > > It doesn't matter where you put it, as long as it is run sometime > during process startup after you define your DB constant. Personally, > I'd add it directly after you define the DB constant. > > Jeremy > > -- > You received this message because you are subscribed to the Google Groups > "sequel-talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<sequel-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/sequel-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
