mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
16 lines
307 B
Ruby
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
|