lib/scaffold_parser/scaffolders/xsd/parser/handlers/klass.rb in scaffold_parser-0.8.0 vs lib/scaffold_parser/scaffolders/xsd/parser/handlers/klass.rb in scaffold_parser-0.9.0
- old
+ new
@@ -99,12 +99,10 @@
f.puts " include ParserCore::BaseBuilder"
includes.each { |incl| f.puts " include #{incl.full_ref}" }
f.puts
f.puts " def builder"
f.puts " root = Ox::Element.new(name)"
- f.puts " if data.key? :attributes"
- f.puts " data[:attributes].each { |k, v| root[k] = v }"
- f.puts " end"
+ f.puts " root = add_attributes_and_namespaces(root)"
f.puts
if inherit_from
f.puts " super.nodes.each do |n|"
f.puts " root << n"
f.puts " end"