parent/parent_id not returned with uuid as id-column #30

Closed
schorsch opened this Issue Nov 10, 2010 · 1 comment

Comments

Projects
None yet
2 participants

When working with uuid's the parent method does not deliver the parent object. Problem lies in instance_methods line 69:
def ancestor_ids
read_attribute(self.base_class.ancestry_column).to_s.split('/').map(&:to_i)
end

Obviously to_i is the problem. For now i have overriden the method in my class, which is not so nice

Owner

stefankroes commented Nov 15, 2010

This was fixed by rolftimmermans. You can use the gem from github for now and the fix will be in the next release.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment