making download public

Change-Id: I88a7d076faf306c935f71153908f6de29f6770da
Reviewed-on: https://gerrit.instructure.com/2436
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
This commit is contained in:
JT Olds 2011-02-24 17:10:23 -07:00
parent bedb1d878e
commit 34263ed8de
1 changed files with 13 additions and 13 deletions

View File

@ -93,19 +93,6 @@ class SisBatch < ActiveRecord::Base
finish importer.finished
end
private
def messages?
(self.processing_errors && self.processing_errors.length > 0) || (self.processing_warnings && self.processing_warnings.length > 0)
end
def add_extension(ext)
@temp_file.close
new_path = @temp_file.path + ext
File.rename(@temp_file.path, new_path)
@temp_file = File.new(new_path)
end
def download_zip
@temp_file = Tempfile.new("sis_data")
if self.data[:file_path]
@ -139,4 +126,17 @@ class SisBatch < ActiveRecord::Base
end
self.save
end
private
def messages?
(self.processing_errors && self.processing_errors.length > 0) || (self.processing_warnings && self.processing_warnings.length > 0)
end
def add_extension(ext)
@temp_file.close
new_path = @temp_file.path + ext
File.rename(@temp_file.path, new_path)
@temp_file = File.new(new_path)
end
end