lib/junoser/xsd/simple_content.rb in junoser-0.3.12 vs lib/junoser/xsd/simple_content.rb in junoser-0.3.13
- old
+ new
@@ -8,10 +8,10 @@
def config
@config ||= children.map {|child|
case child.name
when 'restriction'
- Junoser::Xsd::Restriction.new(child, depth: @depth+1)
+ Junoser::Xsd::Restriction.new(child, depth: @depth+1, parent: self)
when 'extension'
'arg'
else
raise "ERROR: unknown element: #{child.name}"
end