On 10/22/07, Courtenay <[EMAIL PROTECTED]> wrote: > The syntax is great! But this defaults thing is difficult to remember > > DEFAULTS: &DEFAULTS > created_on: <%= 3.weeks.ago.to_s(:db) %> > > first: > name: Smurf > <<: *DEFAULTS
Absolutely, and it would be really easy to support a DEFAULTS key internally instead of letting YAML do it. I originally avoided supporting the defaults internally to keep the code from bloating, but that might be a lame reason. ~ j. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
