TMP commit
This commit is contained in:
@@ -21,9 +21,10 @@ class GenerateContractsZipJob < ApplicationJob
|
||||
zipfile.add(attachment, File.join("#{dir}/", attachment))
|
||||
end
|
||||
|
||||
csv_file = generate_csv releases
|
||||
puts ">>>>> GENERATED ====="
|
||||
zipfile.get_output_stream("#{@folder_name}.csv") { |f| f.puts(csv_file) }
|
||||
if Object.const_get(@release_type).include?(CsvExportable)
|
||||
csv_file = generate_csv releases
|
||||
zipfile.get_output_stream("#{@folder_name}.csv") { |f| f.puts(csv_file) }
|
||||
end
|
||||
end
|
||||
|
||||
@download.file.attach(io: File.open(zipfile_name), filename: "#{@folder_name}.zip")
|
||||
|
||||
Reference in New Issue
Block a user