TreeWalker module

TreeWalker is an optional add-on (like TreeView) that helps traversing the tree in a convenient way: call a given block with the current node and current depth-level. Both common traversing algorithms are implemented:  depth-first search (DFS, default) and  breadth-first search (BFS). Additionally an ActiveRecord `where` statement to filter certain nodes can be given.