tree_decorator 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ module TreeDecorator
26
26
 
27
27
  def populate_with_children(object)
28
28
  content = Hash.new
29
- children = object.kind_of?(Array) ? object : object.send(children_method)
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tree_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: