tree_decorator 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: