Skip to content
Snippets Groups Projects
Commit 61e6a67c authored by Enrique García Cota's avatar Enrique García Cota
Browse files

fixed issue on repository file downloading

parent 4a3a3a4e
Branches
Tags
No related merge requests found
...@@ -144,9 +144,7 @@ module Redmine ...@@ -144,9 +144,7 @@ module Redmine
end end
def cat_to_tempfile(path, identifier, &block) def cat_to_tempfile(path, identifier, &block)
prefix = path.split("/").last Tempfile.open('repository_download') do |f|
tmp_path = Rails.root.join('tmp')
Tempfile.open(prefix, tmp_path) do |f|
save_entry_in_file(f,path,identifier) save_entry_in_file(f,path,identifier)
block.call(f) block.call(f)
end end
......
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