lib/ecoportal/api/common/content/array_model.rb in ecoportal-api-v2-0.8.20 vs lib/ecoportal/api/common/content/array_model.rb in ecoportal-api-v2-0.8.21

- old
+ new

@@ -53,9 +53,13 @@ def _items replace_doc([]) unless doc.is_a?(Array) doc.tap {|d| d.uniq! if uniq?} end + def to_s(delimiter: "|") + map(&:to_s).join(delimiter) + end + # @see #_items # @return [Array] a **copy** of the `Array` elements def to_a _items.slice(0..-1) end