tree_decorator 0.1.4 → 0.1.5

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.
@@ -20,7 +20,7 @@ module TreeDecorator
20
20
 
21
21
  private
22
22
  def get_hash_from_objects
23
- objects = @root.kind_of?(Array) ? @root : [@root]
23
+ objects = @root.respond_to?(:each) ? @root : [@root]
24
24
  populate_with_children(objects)
25
25
  end
26
26
 
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.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: