What do you all think of this syntax:

  User.find_by(:name, "Joe")

instead of

  User.find_by_name("joe")

thus removing at least part of the method_missing hack, and also,
removing a little of the magic "What is this find_by_stuff and why
can't I see it in the API?"

I hear that it'll speed things up and the stacktraces will be simpler.



Apologies if this has been covered previously.

Courtenay

--~--~---------~--~----~------------~-------~--~----~
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