lib/pmp/client.rb in pmp-0.2.1 vs lib/pmp/client.rb in pmp-0.2.2

- old
+ new

@@ -25,10 +25,10 @@ opts = options.merge(href: endpoint).merge(opts) @root ||= PMP::CollectionDocument.new(opts) end def doc_of_type(type, opts={}) - doc = PMP::CollectionDocument.new(options.merge(opts)) + doc = PMP::CollectionDocument.new(options.merge(root:root(opts)).merge(opts)) doc.links['profile'] = Link.new(href: profile_href_for_type(type), type: "application/vnd.pmp.collection.doc+json") doc end # private