search for: before_children

Displaying 1 result from an estimated 1 matches for "before_children".

2006 Feb 24
2
how to better generalize a tree?
...ost acts_as_tree :order => ''created_at'' def print_children (options={}) before = options[:before] ? options[:before] : '''' after = options[:after] ? options[:after] : '''' before_children = options[:before_children] ? options[:before_children] : '''' after_children = options[:after_children] ? options[:after_children] : '''' output = '''' for child in children output += before output += child.body if...