#352 ✓resolved
Ana Nelson

dm-is-tree needs many_to_one replaced with belongs_to

Reported by Ana Nelson | June 6th, 2008 @ 05:56 AM

I was trying to use dm-is-tree and kept getting:

/opt/local/lib/ruby/gems/1.8/gems/dm-core-0.9.1/lib/dm-core/resource.rb:772:in `method_missing':NoMethodError: undefined method `many_to_one' for Project:Class

Eventually I found in the commit logs that many_to_one has just been made private.

I replaced many_to_one with belongs_to and it seems to be working fine. (line 65 of tree.rb)

I don't see any other uses of many_to or one_to in dm-more.

Comments and changes to 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

Tags

Pages