- Removed posts and non contacts from other's data - Collections are exported in batches to lower memory footprint - In base exporters create User object instead of keeping instance because it caches all associations closes #7627
11 lines
297 B
Ruby
11 lines
297 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FlatMapArraySerializer < ActiveModel::ArraySerializer
|
|
def serializable_object(options={})
|
|
@object.flat_map do |subarray|
|
|
subarray.map do |item|
|
|
serializer_for(item).serializable_object_with_notification(options)
|
|
end
|
|
end
|
|
end
|
|
end
|