model_xml 1.0.3 → 1.0.4

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.
@@ -98,7 +98,7 @@ module ModelXML
98
98
 
99
99
  # if the content responds to to_xml, call it passing the current builder
100
100
  if content.respond_to?(:to_xml)
101
- content.to_xml(options.merge(:builder => xml, :skip_instruct => true))
101
+ content.to_xml(options.merge(:builder => xml, :skip_instruct => true, :root => tag.to_s))
102
102
 
103
103
  # otherwise create the tag normally
104
104
  else
data/model_xml.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "model_xml"
3
- s.version = '1.0.3'
3
+ s.version = '1.0.4'
4
4
  s.authors = "Rob Anderson"
5
5
  s.email = "rob.anderson@paymentcardsolutions.co.uk"
6
6
  s.summary = "Ruby object to xml converter"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_xml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rob Anderson