Skip to content

Commit

Permalink
stuipid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slbug committed Nov 3, 2010
1 parent f3270d4 commit 9b2ba22
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/awesome_nested_set/base.rb
Expand Up @@ -363,7 +363,6 @@ def leaves
# Returns the level of this object in the tree
# root level is 0
def level
return depth if depth?
parent_id.nil? ? 0 : ancestors.count
end

Expand Down

0 comments on commit 9b2ba22

Please sign in to comment.