debian-mirror-gitlab/lib/gitlab/template_helper.rb
2018-11-20 20:47:30 +05:30

14 lines
258 B
Ruby

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