Files
gitlabhq/lib/gitlab/template_helper.rb
2024-07-24 18:10:15 +00:00

16 lines
307 B
Ruby

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