lib/eco/api/common/people/person_entry.rb in eco-helpers-2.0.18 vs lib/eco/api/common/people/person_entry.rb in eco-helpers-2.0.19
- old
+ new
@@ -214,9 +214,10 @@
@final_entry.slice(*scoped_attrs).each do |attr, value|
set_part(person.account, attr, value)
end
end
+ # TO DO: use person.details.schema_id to switch @emap and @person_parser (or just crash if they don't match?)
# Setter to fill in all the schema `details` fields of the `Person` that are present in the `Entry`.
# @note it only sets those details properties defined in the entry.
# Meaning that if an details property is not present in the entry, this will not be set on the target person.
# @param person [Ecoportal::API::V1::Person] the person we want to set the schema fields' values to.
# @param exclude [String, Array<String>] schema field attributes that should not be set/changed to the person.