lib/goldendocx/docx.rb in goldendocx-0.2.3 vs lib/goldendocx/docx.rb in goldendocx-0.3.0

- old
+ new

@@ -87,12 +87,12 @@ private def build_default associations.each do |association, options| - association_class = options[:class_name].constantize + association_class = options.class_name.constantize instance_variable_set("@#{association}", association_class.new) - add_relationship association_class::TYPE, association_class::XML_PATH unless options[:isolate] + add_relationship association_class::TYPE, association_class::XML_PATH unless options.isolate end content_types.add_override "/#{Goldendocx::Parts::App::XML_PATH}", Goldendocx::Parts::App::CONTENT_TYPE content_types.add_override "/#{Goldendocx::Parts::Core::XML_PATH}", Goldendocx::Parts::Core::CONTENT_TYPE content_types.add_override "/#{Goldendocx::Documents::Styles::XML_PATH}", Goldendocx::Documents::Styles::CONTENT_TYPE