lib/ecoportal/api/common/content/doc_helpers.rb in ecoportal-api-v2-2.0.6 vs lib/ecoportal/api/common/content/doc_helpers.rb in ecoportal-api-v2-2.0.7
- 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::HashDiffPatch.patch_diff(doc.as_json, nil)
+ HashDiffPatch.patch_diff(doc.as_json, nil)
when doc.is_a?(Hash)
- Common::Content::HashDiffPatch.patch_diff(doc, nil)
+ HashDiffPatch.patch_diff(doc, nil)
else
raise "Could not get body for doc: #{doc}"
end
end
end