This project is archived and is in readonly mode.

#104 ✓resolved
Jonathan Viney

Fix blank conditions with find on AssociationCollection

Reported by Jonathan Viney | May 4th, 2008 @ 04:06 AM

Passing blank conditions straight to ActiveRecord::Base.find works as expected, no conditions are added to the sql. The same is not true when calling find on an AssociationCollection

This patch makes AssociationCollection#find behave like ActiveRecord::Base.find with respect to blank :conditions options.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages