Welcome to mirror list, hosted at ThFree Co, Russian Federation.

template_helper.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b0e01697a667389b73a19efaa36abcaa229cf447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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