debian-mirror-gitlab/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

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
2018-11-18 11:00:15 +05:30
module Gitlab
module TemplateHelper
def prepare_template_environment(file)
return unless file
2018-11-20 20:47:30 +05:30
params[:import_export_upload] = ImportExportUpload.new(import_file: file)
2018-11-18 11:00:15 +05:30
end
def tmp_filename
SecureRandom.hex
end
end
end