Commit 61e6a67c authored by Enrique García Cota's avatar Enrique García Cota

fixed issue on repository file downloading

parent 4a3a3a4e
......@@ -144,9 +144,7 @@ module Redmine
end
def cat_to_tempfile(path, identifier, &block)
prefix = path.split("/").last
tmp_path = Rails.root.join('tmp')
Tempfile.open(prefix, tmp_path) do |f|
Tempfile.open('repository_download') do |f|
save_entry_in_file(f,path,identifier)
block.call(f)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment