Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion after_initialize/after_find misfeature
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ara.t.howard  
View profile  
 More options Jul 24 2007, 5:03 pm
From: "ara.t.howard" <ara.t.how...@gmail.com>
Date: Tue, 24 Jul 2007 15:03:04 -0600
Local: Tues, Jul 24 2007 5:03 pm
Subject: Re: [Rails-core] Re: after_initialize/after_find misfeature

On Jul 24, 2007, at 2:50 PM, Michael Koziarski wrote:

> On 7/23/07, Michael Koziarski <mich...@koziarski.com> wrote:

>> Without cases which
>> can't be solved by this pattern, I'm not sure that adding a new
>> callback is justified.

> Sorry for replying to myself, but the wireless here is a little too
> spotty to reply to all the individual threads.

> Providing a method to allow static defaults such as:

> set_default_values :foo=>'bar'

> Is just reimplementing the pre-existing defaults code that we extract
> from the columns, so I'm not sure that's the right way to go.

> For dynamic defaults, such as 'the default value for the categories on
> a blog, is taken from the account's default values' I've not seen a
> case that can't be catered for by overriding the initialize method.

> Requiring users to call super first is perfectly acceptable to me.  To
> expect to use methods from a super class without first initializing
> that super class seems very strange to me.

> Of course, there may well be particular cases where it's genuinely
> confusing that something doesn't work, or that the error messages are
> misleading,  but we can fix those on a case by case basis.

> Every feature that we add, becomes something we need to support on an
> ongoing basis, for the foreseeable future.  So we have to have a
> reject by default, or we'll end up with another 'components'.

i agree nearly 100%.  the simplest solution, by far, seem to simply  
make after_initialize actually called then.  leaving open the door  
for before_initialize and remaining backward compatible.

> --
> Cheers

> Koz

a @ http://drawohara.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama

 
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.