app/models/effective/effective_datatable/csv.rb in effective_datatables-4.13.4 vs app/models/effective/effective_datatable/csv.rb in effective_datatables-4.13.5

- old
+ new

@@ -20,10 +20,10 @@ def csv_file CSV.generate do |csv| csv << csv_header() - collection.send(csv_collection_method) do |resources| + collection.find_in_batches do |resources| resources = arrayize(resources, csv: true) format(resources, csv: true) finalize(resources) resources.each { |resource| csv << resource }