> In the latter case, what about using an overloaded attr reader instead?

you can use this in some situations, but if you have interdependent
defaults for three or four fields it can get really confusing.  Better
to have that logic put in one common place, and a callback is probably
the right place for it.

-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to