RubyGems
npm
Organizations
Log in
Sign up
RubyGems
tree_decorator
Versions diffs
0.1.4 → 0.1.5
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.
Files changed (2)
hide
show
data/lib/tree_decorator/object_hanger.rb
+1
-1
metadata
+1
-1
data/lib/tree_decorator/object_hanger.rb
CHANGED
Viewed
@@ -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
Viewed
@@ -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: