mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 01:14:30 +08:00
Format according to Houndbot #5
This commit is contained in:
parent
90b220ddda
commit
6106904460
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ class TeamZipExport < ZipExport
|
||||||
output_file = File.new(
|
output_file = File.new(
|
||||||
File.join(Rails.root,
|
File.join(Rails.root,
|
||||||
"tmp/zip-ready/projects_export-timestamp-#{Time.now.to_i}.zip"),
|
"tmp/zip-ready/projects_export-timestamp-#{Time.now.to_i}.zip"),
|
||||||
'w+')
|
'w+'
|
||||||
|
)
|
||||||
fill_content(dir_to_zip, data, type, options)
|
fill_content(dir_to_zip, data, type, options)
|
||||||
zip!(dir_to_zip, output_file.path)
|
zip!(dir_to_zip, output_file.path)
|
||||||
self.zip_file = File.open(output_file)
|
self.zip_file = File.open(output_file)
|
||||||
|
|
Loading…
Reference in a new issue