collectiveidea/awesome_nested_set — Issue #118: Feature: Add last_child_in_level attribute
Author: all4miller
Created: 2012-02-10 09:11:25+00:00
State: open

For styling trees it's very useful to know if the current node is the last node of the current level. This is easily computed as the node.rgt+1 = parent.rgt or the node.rgt = max rgt for all nodes.

To make this fast it would ideal for this to be an attrribute on the persisted record to avoid additional db calls.