lib/openxml/docx/parts/document.rb in openxml-docx-0.10.0 vs lib/openxml/docx/parts/document.rb in openxml-docx-0.10.1

- old
+ new

@@ -2,16 +2,17 @@ module Docx module Parts class Document < OpenXml::Part include RootNamespaces - attr_reader :children, :current_section + attr_reader :children, :current_section, :relationships - use_namespaces :wpc, :mo, :mv, :o, :r, :m, :v, :wp14, :wp, :w10, :w14, :wpg, :wpi, :wne, :wps, :w, :mc, :a14, :pic + use_namespaces :wpc, :mo, :mv, :o, :r, :m, :v, :wp14, :wp, :w10, :w14, :wpg, :wpi, :wne, :wps, :w, :mc, :a, :a14, :pic can_ignore :w14, :wp14, :a14 def initialize @children = [] + @relationships = OpenXml::Parts::Rels.new end def <<(child) if child.is_a?(OpenXml::Docx::Section) set_section(child)