
exception when using is :nested_set
Reported by Piotr Solnica (solnic) | June 30th, 2008 @ 12:30 PM
I have a model:
class Component
include DataMapper::Resource
property :id, Serial
property :parent_id, Integer, :index => true, :nullable => true, :default => nil
property :site_id, Integer, :index => true, :nullable => true
property :page_id, Integer, :index => true, :nullable => true
property :class_name, Discriminator
property :name, String, :length => 1..255, :nullable => false
property :template, String
property :template_token, String
property :created_at, DateTime
property :updated_at, DateTime
is :nested_set
end
Loading this class causes an exception:
/gems/dm-is-nested_set-0.9.3/lib/dm-is-nested_set/is/nested_set.rb:138:in `nested_set_scope': undefined method `map' for nil:NilClass (NoMethodError)
I'm using latest dm-* and do sources from git.
Comments and changes to this ticket
-
Sindre Aarsaether July 1st, 2008 @ 05:42 AM
Will fix this soon (know what the problem is). Some tests now breaks after updating to trunk, so I must find out what that problem is first. Hopefully I'll fix it later tonight.
-
Jonathan Stott (namelessjon) November 30th, 2008 @ 08:15 AM
- State changed from new to hold
Has this been resolved?
On hold until I get more info.
-
Dan Kubb (dkubb) December 4th, 2008 @ 02:59 AM
- State changed from hold to not-applicable
I just loaded the class in the first comment and it no longer throws any exceptions. Marking this as not-applicable.
Please re-open this if it is still an issue for you with the latest gems. Also, please provide a stand-alone script that reproduces the problem each time so that it will easier for us verify if the problem is resolved.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »