lib/ecoportal/api/common/content/double_model.rb in ecoportal-api-v2-0.8.26 vs lib/ecoportal/api/common/content/double_model.rb in ecoportal-api-v2-0.8.27
- old
+ new
@@ -327,10 +327,11 @@
Common::Content::HashDiffPatch.patch_diff(new_doc, original_doc)
end
# @return [Boolean] stating if there are changes
def dirty?
- as_update != {}
+ au = as_update
+ !((au == {}) || (au == nil))
end
# It makes `original_doc` to be like `doc`
# @note
# - after executing it, there will be no pending changes