dm-is-tree needs many_to_one replaced with belongs_to
Reported by Ana Nelson | June 6th, 2008 @ 05:56 AM | in 1.x
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
-
Dan Kubb June 9th, 2008 @ 11:32 PM
- → Milestone changed from to 1.x
- → State changed from new to resolved
- → Assigned user changed from Sam Smoot to Dan Kubb
This issue should be fixed with the following commit:
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
