Received: by 10.35.130.15 with SMTP id h15mr3152826pyn.1185239659233; Mon, 23 Jul 2007 18:14:19 -0700 (PDT) Return-Path: Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx.google.com with ESMTP id a28si1476793pye.2007.07.23.18.14.18; Mon, 23 Jul 2007 18:14:19 -0700 (PDT) Received-SPF: pass (google.com: domain of pratikn...@gmail.com designates 64.233.182.185 as permitted sender) DomainKey-Status: good (test mode) Received: by nf-out-0910.google.com with SMTP id h3so114178nfh for ; Mon, 23 Jul 2007 18:14:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FlDgQmEWA2ReINOVlJK0LQ5HwKiJ6xcAuQgWbKaVLHNuhSGCDzdI1tWsBipFpb89k3s8nzW6RQUuoQJuiyFaSBKVHqLx4fgjYRz8IQpb+UpME1/DG7iiZW+5cPGYAnPDxynjDzsdnztrj+dQAsRX6Zn9l9udMPBumebwOKh/pFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f2p2MPY6Rt38FkvXQvFET/rsqFYN21VEVaVySd20CzuX51kDaYjHhUCry0kp/OtcF1BfVgrybDj1LpXZolggcqNIRaniJkydIvT7Td4hy5G0pJh+PxFBo+Gx+K4IHAMV/U3wp9eFiNHN+fIzXRf3FrKTymuhUOHe+PV6l51KgRI= Received: by 10.82.181.10 with SMTP id d10mr2571793buf.1185239657917; Mon, 23 Jul 2007 18:14:17 -0700 (PDT) Received: by 10.82.158.5 with HTTP; Mon, 23 Jul 2007 18:14:17 -0700 (PDT) Message-ID: <9212531d0707231814rdb56698j40ac4f61c9bb9974@mail.gmail.com> Date: Tue, 24 Jul 2007 02:14:17 +0100 From: Pratik To: rubyonrails-core@googlegroups.com Subject: Re: [Rails-core] Re: after_initialize/after_find misfeature In-Reply-To: <46A54EC6.10505@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <897e96cc0707220254l750943a2naeab8aaf02499...@mail.gmail.com> <897e96cc0707221150k776ae7fbgdc6997670c04b...@mail.gmail.com> <897e96cc0707221453t31d07295y7f6d39cf421f6...@mail.gmail.com> <897e96cc0707221556q61c4d314o31c8124b1ed1a...@mail.gmail.com> <4c8ba2280707230730j32db9a9fkacefc1531ce7d...@mail.gmail.com> <46A54EC6.10...@gmail.com> > But, I would say that setting default values for model objects is an *extremely* common practice... > needed on just about every project. Just wondering how did you achieve it previous to hearing about Jonathan's plugin ? Why add a new callback when all you need is 4 lines of documentation on how to do it ? -- Cheers! - Pratik http://m.onkey.org