debian-mirror-gitlab/app/uploaders/import_export_uploader.rb
2018-11-18 11:00:15 +05:30

17 lines
258 B
Ruby

# frozen_string_literal: true
class ImportExportUploader < AttachmentUploader
EXTENSION_WHITELIST = %w[tar.gz gz].freeze
def extension_whitelist
EXTENSION_WHITELIST
end
def move_to_store
true
end
def move_to_cache
false
end
end