Hash Conditions for belongs_to assocations : A little sprinkling of sugar

Hi Everyone,

I've just uploaded a patch that allows you to do:

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

i.e leave off the "_id" for belongs_to associations (specify the association name rather than the foreign key).

Looking for comments, suggestions and hopefully +1's. :slight_smile:


(The obvious thing to do is expand that syntax out to cover all assocation types, but I thought I'd start small).