debian-mirror-gitlab/lib/gitlab/template_helper.rb

14 lines
258 B
Ruby
Raw Normal View History

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