Hi All,

I've got a patch
(http://rails.lighthouseapp.com/projects/8994/tickets/467-hash-conditions-belongs_to-sugar)
that allows you to do:

 Person.find(:all, :conditions => { :university => victoria_wellington })

I'm planning on making it work for belongs_to and has_one (including
polymorphic association).

The discussion was basically around whether or not we should tie hash
conditions to the database field names.

There was also some discussion about find_by_association, i.e

  Person.find_by_university(victoria_wellington)

Josh has a patch that I can merge into all this stuff pretty easily.

Pratik asked me to restart the discussion here, so I'd be interested
to hear what everybody thinks.

Thanks!

Nik

-- 

Nik Wakelin
+64 27 424 5433

* Blog: http://codetocustomer.com/blog
* WWR: http://workingwithrails.com/person/7401-nicholas-wakelin
* Company: http://codetocustomer.com

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