collectiveidea/awesome_nested_set — pull request #111 by codeprimate (2012-01-11 04:19:03+00:00)
Title: A more robust leaf? function

The leaf? function dies if lft or rgt are nil. Here is a suggested fix.