gitlab-org--gitlab-foss/lib/gitlab/template_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
289 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-07-20 19:25:10 -04:00
module Gitlab
module TemplateHelper
def prepare_template_environment(file)
2018-08-03 07:07:50 -04:00
return unless file
2018-07-20 19:25:10 -04:00
params[:import_export_upload] = ImportExportUpload.new(import_file: file)
2018-07-20 19:25:10 -04:00
end
def tmp_filename
SecureRandom.hex
end
end
end