lib/ecoportal/api/common/base_model.rb in ecoportal-api-0.1.1 vs lib/ecoportal/api/common/base_model.rb in ecoportal-api-0.1.2

- old
+ new

@@ -15,9 +15,13 @@ def as_json doc end + def to_json(*args) + doc.to_json(*args) + end + def as_update new_doc = as_json Common::HashDiff.diff(new_doc, @original_doc) end