Module Ancestry::ClassMethods
In: lib/ancestry/class_methods.rb

Methods

Public Instance methods

Arrange array of nodes into a nested hash of the form {node => children}, where children = {} if the node has no children

Build ancestry from parent id‘s for migration purposes

Rebuild depth cache if it got corrupted or if depth caching was just turned on

Integrity restoration

Scope on relative depth options

Pseudo-preordered array of nodes. Children will always follow parents, but the ordering of nodes within a rank depends on their order in the array that gets passed in

Fetch tree node if necessary

[Validate]