2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
module Gitlab
|
|
|
|
module TemplateHelper
|
|
|
|
def prepare_template_environment(file)
|
|
|
|
return unless file
|
|
|
|
|
2018-11-20 20:47:30 +05:30
|
|
|
params[:import_export_upload] = ImportExportUpload.new(import_file: file)
|
2018-11-18 11:00:15 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def tmp_filename
|
|
|
|
SecureRandom.hex
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|