method

self_and_siblings

rails latest stable - Class: ActiveRecord::Acts::Tree::InstanceMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

self_and_siblings()
public

Returns all siblings and a reference to the current node.

  subchild1.self_and_siblings # => [subchild1, subchild2]