Permalink
Browse files

Fix root_of? predicate.

  • Loading branch information...
1 parent 7f51496 commit c3c6a43ffcb038716ab64d23b22baff8cf49c0b9 @neglectedvalue committed Jun 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ancestry/instance_methods.rb
View
2 lib/ancestry/instance_methods.rb
@@ -136,7 +136,7 @@ def is_root?
end
def root_of?(node)
- self.root_id == node.root_id
+ self.id == node.root_id
end
# Children

0 comments on commit c3c6a43

Please sign in to comment.