lib/ecoportal/api/v1/person_details.rb in ecoportal-api-0.1.12 vs lib/ecoportal/api/v1/person_details.rb in ecoportal-api-0.2.0
- old
+ new
@@ -39,9 +39,11 @@
end
def []=(id, value)
if field = get_field(id)
field.value = value
+ else
+ raise "details[#{id.inspect}] is missing. Did you forget to load the schema?"
end
end
private