[Rails-core] Re: a generic solution to defaults in AR model initialization

2008-09-09 Thread tron
Jonathan, cool, it does exactly what I need and more, but once we are at it let me raise some issues. The way you define defaults, symbol values are called on the instance This intends to capture the situation when an attribute is by default assumes the value of another attribute (e.g., default

[Rails-core] Re: a generic solution to defaults in AR model initialization

2008-09-08 Thread Jonathan Viney
Does the plugin I wrote a while back do what's needed? http://svn.viney.net.nz/things/rails/plugins/active_record_defaults/ Cheers, -Jonathan. On Mon, Sep 8, 2008 at 10:07 PM, tron <[EMAIL PROTECTED]> wrote: > > This afterthought to this ancient but still relevant post > > http://groups.google.

[Rails-core] Re: a generic solution to defaults in AR model initialization

2008-09-08 Thread John D. Hume
> This afterthought to this ancient but still relevant post > http://groups.google.com/group/rubyonrails-core/browse_thread/thread/b509a2fe2b62ac5 I wish you'd also warned how annoying that thread was. It just ruined my breakfast, and I only got half-way through. Anyway, I like the functionality