Module: ActsAsOrderedTree::Arrangeable
- Defined in:
- lib/acts_as_ordered_tree/arrangeable.rb
Instance Method Summary collapse
-
#arrange(options = {}) ⇒ Object
Arrange associated collection into a nested hash of the form => children, where children = {} if the node has no children.
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( = {}) @arranger ||= Arranger.new(self, ) @arranger.arrange end |