Hi Tony,

> The issue is this:
>
>   resource(Company.first, :teams)
>
> works fine but
>
>   resource(@team.company, :teams)
>
> fails to find the route.

This is actually a known issue that Carl Lerche originally
discovered.  It is fixed in edge sam/dm-core as of 3 days ago:
http://is.gd/a9l4

It's also fixed in dkubb/dm-core because we don't have a
ManyToOne::Proxy object at all.  We return plain Resource objects from
many to one accessors.

Dan
(dkubb)

P.S. We'll probably be doing a dm-core and dm-more gem release this
week so this fix will be available via gem shortly.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to