From: Eric Hodel Date: 2004-04-04T11:42:25-07:00 Subject: Re: good module use? --PWfwoUCx3AFJRUBq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Kent Dahl (kentda+news@stud.ntnu.no) wrote: > >Is there a way to achieve what I'm trying, and in the case that it would= =20 > >be possible, is it a good approach? >=20 > I'd be more inclined to use singleton, and delay connecting to the=20 > database until it is needed. http://segment7.net/projects/ruby/snippets/database.rb Is an example of this approach. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --PWfwoUCx3AFJRUBq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAcFcRMypVHHlsnwQRAqtUAJ4p+o90MH3gTIhf22touFwwKlelsgCfcIIZ ZvjUMMoBibcQ7bJxTSNVLiQ= =sbRR -----END PGP SIGNATURE----- --PWfwoUCx3AFJRUBq--