From: court3nay <court3...@gmail.com>
Date: Sun, 22 Jul 2007 14:25:04 -0700
Local: Sun, Jul 22 2007 5:25 pm
Subject: Re: [Rails-core] Re: after_initialize/after_find misfeature
On Jul 22, 2007, at 2:03 PM, "Piers Cawley" <pdcaw...@bofh.org.uk>
wrote: > On 22/07/07, court3nay <court3...@gmail.com> wrote: >> On Jul 22, 2007, at 1:14 PM, "Damian Janowski" <damian.janow...@gmail.com >>> On 7/22/07, Piers Cawley <pdcaw...@bofh.org.uk> wrote: >>>> That @customer is never going to be validated, but it does make >>> Really hear you on that one. >>> If we need to deal with default values in a better way, why not >>> class Foo < ActiveRecord::Base >>> protected >>> The second parameter being a hash for some readability and >>> Thoughts? >> Does default belong in the schema as it is essentially a db > No it isn't. Consider the use case of the newly created 'template' overloaded reader? def name I do like the idea of wrapping that functionality in your syntax as courtenay You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||