#834 ✓resolved
Bernerd Schaefer

[0.9.11] Many-to-many namespace regression

Reported by Bernerd Schaefer | April 16th, 2009 @ 02:35 PM

As of commit 61e7fa5261, the class name provided to has n, :through => Resource associations is no longer passed to the join model's belongs_to statement.

This breaks the usage of namespaced models (see: http://pastie.org/448932).

>

The commit message is unrelated to the removal of the :class_name option, which leads me to believe this was done in error.

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) May 28th, 2009 @ 07:17 PM

    • State changed from “unconfirmed” to “accepted”
    • Assigned user set to “Dan Kubb (dkubb)”
  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 7th, 2009 @ 02:17 AM

    • State changed from “accepted” to “resolved”

    I can confirm this is no longer a bug in the dm-core/next branch. The target_model is explicitly passed into the belongs_to association created, so namespaced models should work just fine.. in fact all of the many to many specs use namespaced models. I am marking this ticket as resolved for now.

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

Pages