lib/ecoportal/api/v1/person_details.rb in ecoportal-api-0.1.1 vs lib/ecoportal/api/v1/person_details.rb in ecoportal-api-0.1.2
- old
+ new
@@ -7,11 +7,11 @@
def as_json
super.merge "fields" => fields.map(&:as_json)
end
def schema_id=(value)
- @fields = [] if value.nil?
- super
+ @fields = [] if value.nil?
+ doc["schema_id"] = value
end
def fields
return @fields if defined?(@fields)
@fields = (doc["fields"] || []).map do |field|