tree_decorator 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tree_decorator/object_hanger.rb +1 -1
- metadata +1 -1
@@ -26,7 +26,7 @@ module TreeDecorator
|
|
26
26
|
|
27
27
|
def populate_with_children(object)
|
28
28
|
content = Hash.new
|
29
|
-
children = object.
|
29
|
+
children = object.respond_to?(:each) ? object : object.send(children_method)
|
30
30
|
|
31
31
|
if children and !children.empty?
|
32
32
|
children.each do |child|
|