File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,8 @@ <h2>Deterministic ordering</h2>
435435</ ul > < p > If your < code > order</ code > column is an integer attribute, you'll also have these:</ p >
436436
437437< ul >
438+ < li > < p > The class method < code > #roots_and_descendants_preordered</ code > , which returns all nodes in your tree,
439+ < a href ="http://en.wikipedia.org/wiki/Tree_traversal#Pre-order "> pre-ordered</ a > .</ p > </ li >
438440< li > < p > < code > node1.self_and_descendants_preordered</ code > which will return descendants,
439441< a href ="http://en.wikipedia.org/wiki/Tree_traversal#Pre-order "> pre-ordered</ a > .</ p > </ li >
440442< li >
@@ -542,7 +544,12 @@ <h2>Testing</h2>
542544
543545< h2 > Change log</ h2 >
544546
545- < h3 > 3.9.0</ h3 >
547+ < h3 > 3.10.0</ h3 >
548+
549+ < ul >
550+ < li > Added < code > #roots_and_descendants_preordered</ code > .
551+ Thanks for the suggestion, < a href ="https://github.com/leonelgalan "> Leonel Galan</ a > !</ li >
552+ </ ul > < h3 > 3.9.0</ h3 >
546553
547554< ul >
548555< li > Added < code > .child_ids</ code > .</ li >
You can’t perform that action at this time.
0 commit comments