lib/ecoportal/api/v1/person.rb in ecoportal-api-0.9.4 vs lib/ecoportal/api/v1/person.rb in ecoportal-api-0.9.5
- old
+ new
@@ -79,10 +79,10 @@
def as_json
super.merge "details" => details&.as_json
end
def as_update(ref = :last, ignore: [])
- super(ignore: ignore | ["subordinates"])
+ super(ref, ignore: ignore | ["subordinates"])
end
# Sets the PersonDetails to the person, depending on the paramter received:
# - `nil`: blanks the details.
# - `PersonDetails`: sets a copy of the object param as details.