lib/eco/api/common/people/person_entry.rb in eco-helpers-2.0.9 vs lib/eco/api/common/people/person_entry.rb in eco-helpers-2.0.10

- old
+ new

@@ -254,10 +254,10 @@ # Serializing helper that maps internal attributes to external attribute names # @note **Serialize**: here we unaliase internal attribute names into external ones. # @param mapped_entry [Hash] that with **internal** names but **external** values and types. # @return [Hash] with **external** names, values and types. def _external_serializing(mapped_entry) - target_attrs = @emap.all_attrs | @emap.aliased_attrs + target_attrs = @emap.all_model_attrs | @emap.aliased_attrs rest_keys = mapped_entry.keys - target_attrs target_attrs -= ["send_invites"] external_entry = target_attrs.each_with_object({}) do |attr, hash| unless hash.key?(ext_attr = @emap.to_external(attr)) hash[ext_attr] = mapped_entry[attr]