lib/junoser/xsd/restriction.rb in junoser-0.3.12 vs lib/junoser/xsd/restriction.rb in junoser-0.3.13
- old
+ new
@@ -15,12 +15,12 @@
def config
@config ||= children.map {|child|
case child.name
when 'enumeration'
- Junoser::Xsd::Enumeration.new(child, depth: @depth+1)
+ Junoser::Xsd::Enumeration.new(child, depth: @depth+1, parent: self)
when 'simpleType'
- Junoser::Xsd::SimpleType.new(child, depth: @depth+1)
+ Junoser::Xsd::SimpleType.new(child, depth: @depth+1, parent: self)
when 'attribute'
else
raise "ERROR: unknown element: #{child.name}"
end
}.compact