#361 ✓resolved
Justin Pease

.all on associations broken

Reported by Justin Pease | June 9th, 2008 @ 09:28 AM

for association:

has n, :foo => :bar

calling @x.foo.all returns a "no all method on Array" error.

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 9th, 2008 @ 09:53 AM

    • Milestone cleared.
    • State changed from “new” to “open”
    • Assigned user changed from “Sam Smoot” to “Dan Kubb (dkubb)”
  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 9th, 2008 @ 09:56 AM

    An OneToMany::Proxy#all method needs to be added back in. I mistakenly removed it thinking that the Proxy object would take care of sending the messages to the underlying Collection object, but I forgot that in the case of hm:t that the underlying object is an Array (we've got to change that sometime too).

    This should also be speced so that it doesn't break in the future.

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 9th, 2008 @ 06:31 PM

    • State changed from “open” to “resolved”

    This should be resolved in this commit:

    http://github.com/sam/dm-core/co...

    Please let me know if this hasn't resolved the issue and I'll re-open this ticket.

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