collectiveidea/awesome_nested_set — pull request #135 by thedarkone (2012-05-02 14:16:10+00:00)
Title: nested_set helpers and #level query counts

The patch reduces the number of queries fired by the canonical usage of the `level` method in the `nested_set` helpers. The current status is 1 ancestors `count(*)` query for each item in the collection, the patch typically eliminates all the extra queries.

Don't know if this should be tested... perhaps by copying over something like `assert_queries` from Rails' `ActiveRecord::TestCase`?