Module: ActsAsOrderedTree::Arrangeable

Defined in:
lib/acts_as_ordered_tree/arrangeable.rb

Instance Method Summary collapse

Instance Method Details

#arrange(options = {}) ⇒ Object

Arrange associated collection into a nested hash of the form => children, where children = {} if the node has no children.


75
76
77
78
# File 'lib/acts_as_ordered_tree/arrangeable.rb', line 75

def arrange(options = {})
  @arranger ||= Arranger.new(self, options)
  @arranger.arrange
end