Method: TecDoc::AssemblyGroup#children
- Defined in:
- lib/tec_doc/assembly_group.rb
#children ⇒ Object
58 59 60 61 62 63 64 65 66 |
# File 'lib/tec_doc/assembly_group.rb', line 58 def children @children ||= if has_children self.class. all(scope.merge(:parent_node_id => id)). each { |child| child.parent = self } else [] end end |