-1 Don't add this to core, keep it as a plugin. For example, I use a plugin called "acts_as_lookup" in which you can do things like State["NY","California"] and State[5] where it will return the matching records.
IMHO defining the [] method on AR objects should be done in plugins, or it should be gone all out with configurability options. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
