lib/ecoportal/api/common/content/doc_helpers.rb in ecoportal-api-v2-0.8.11 vs lib/ecoportal/api/common/content/doc_helpers.rb in ecoportal-api-v2-0.8.12

- old
+ new

@@ -11,12 +11,12 @@ {}.tap do |body| body["#{level}"] = case when doc.respond_to?(:as_update) doc.as_update when doc.respond_to?(:as_json) - Common::Content::HashPatchDiff.patch_diff(doc.as_json) + Common::Content::HashDiffPatch.patch_diff(doc.as_json, nil) when doc.is_a?(Hash) - Common::Content::HashPatchDiff.patch_diff(doc) + Common::Content::HashDiffPatch.patch_diff(doc, nil) else raise "Could not get body for doc: #{doc}" end end end