summaryrefslogtreecommitdiff
path: root/lib/gitlab/template_helper.rb
blob: fc498dde7230ec359d9a3254b499467add9bed02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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