| Module | SymetrieCom::Acts::NestedSet::InstanceMethods |
| In: |
lib/better_nested_set.rb
|
Adds a child to this object in the tree. If this object hasn’t been initialized, it gets set up as a root node. Otherwise, this method will update all of the other elements in the tree and shift them to the right, keeping everything balanced.
Deprecated, will be removed in next versions
Returns a set of all of its children and nested children Pass :exclude => item, or id, or [items or id] to exclude some parts of the tree
Returns an array of all parents Maybe ‘full_outline’ would be a better name, but we prefer to mimic the Tree class
Prunes a branch off of the tree, shifting all of the elements on the right back to the left so the counts still work.
Returns a set of itself and all of its nested children Pass :exclude => item, or id, or [items or id] to exclude some parts of the tree