Commit b02ed022 authored by nmilojevic1's avatar nmilojevic1

Fix streaming serializer for meny_each

- Bad merge, method name changed to write_relation_array
parent cd2a9394
......@@ -69,11 +69,13 @@ module Gitlab
end
def serialize_many_each(key, records, options)
records.each do |record|
json = Raw.new(record.to_json(options))
json_writer.append(key, json)
enumerator = Enumerator.new do |items|
records.each do |record|
items << Raw.new(record.to_json(options))
end
end
json_writer.write_relation_array(@exportable_path, key, enumerator)
end
def serialize_single_relation(key, record, options)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment