lib/ecoportal/api/v1/person_schema.rb in ecoportal-api-0.2.1 vs lib/ecoportal/api/v1/person_schema.rb in ecoportal-api-0.2.2
- old
+ new
@@ -39,13 +39,9 @@
details.doc["fields"] = fields.map do |field|
field.doc.slice(*%w[id alt_id name multiple type shared]).merge(
"value" => field.multiple ? [] : nil
)
end
- # Patch out static data from as_update
- original = details.instance_variable_get("@original_doc")
- original["fields"] = JSON.parse(details.doc["fields"].to_json)
- return
end
private
def schema_field_class