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.
@@ -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: