gitlab-org--gitlab-foss/lib/gitlab/template_helper.rb
2018-10-22 07:00:50 +00:00

15 lines
289 B
Ruby

# frozen_string_literal: true
module Gitlab
module TemplateHelper
def prepare_template_environment(file)
return unless file
params[:import_export_upload] = ImportExportUpload.new(import_file: file)
end
def tmp_filename
SecureRandom.hex
end
end
end