#643 ✓resolved

Associations and #first, incorrect result

Reported by crantz | November 6th, 2008 @ 08:58 PM

OneToMany::Proxy#first may find the wrong object if an options hash is passed when the parent is part of a Collection.

Example: http://pastie.org/308772

Calling Relationship#get_children directly with finder = :first and a parent object from a Collection causes the same problem.

Google Group thread

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) November 23rd, 2008 @ 09:31 PM

    • State changed from “new” to “resolved”

    This problem should now be resolved in the experimental dkubb/dm-core fork:


    You will need to install dkubb/dm-core and dkubb/extlib for this to work. Both are available on github.com.

    However keep in mind this is an experimental branch, so it will still be 1-2 months before this is merged into sam/dm-core.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

People watching this ticket