lib/ncs_navigator/mdes/specification.rb in ncs_mdes-0.12.0 vs lib/ncs_navigator/mdes/specification.rb in ncs_mdes-0.13.0

- old
+ new

@@ -81,11 +81,11 @@ def read_transmission_tables xsd.xpath( '//xs:element[@name="transmission_tables"]/xs:complexType/xs:sequence/xs:element', source_documents.xmlns ).collect { |table_elt| - TransmissionTable.from_element(table_elt, :log => @log) + TransmissionTable.from_element(table_elt, :log => @log, :heuristic_overrides => heuristic_overrides) }.tap { |tables| tables.each { |t| t.variables.each { |v| v.resolve_type!(types, :log => @log) } } # All types must be resolved before doing FK resolution or # forward refs are missed. tables.each { |t| @@ -163,10 +163,10 @@ @types ||= read_types end def read_types xsd.xpath('//xs:simpleType[@name]', source_documents.xmlns).collect do |type_elt| - VariableType.from_xsd_simple_type(type_elt, :log => @log) + VariableType.from_xsd_simple_type(type_elt, :log => @log, :heuristic_overrides => heuristic_overrides) end end private :read_types ##