Module | ActiveRecord::Acts::NestedSet::InstanceMethods |
In: |
lib/active_record/acts/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.