tree_decorator 0.1.1 → 0.1.2

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.
@@ -30,6 +30,9 @@ module TreeDecorator
30
30
 
31
31
  if children and !children.empty?
32
32
  children.each do |child|
33
+ unless child.respond_to? content_method
34
+ raise "Child does not have :#{content_method} method: #{child.inspect}"
35
+ end
33
36
  content[child.send(content_method)] = populate_with_children(child)
34
37
  end
35
38
  end
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.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: