mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Merge pull request #83 from insales/rename_iostream_tempfile
Переименовываем временные файлы, чтобы проверить, кто их создаёт
This commit is contained in:
@@ -5,7 +5,7 @@ module IOStream
|
||||
def to_tempfile(object)
|
||||
return object.to_tempfile if object.respond_to?(:to_tempfile)
|
||||
name = object.respond_to?(:original_filename) ? object.original_filename : (object.respond_to?(:path) ? object.path : "stream")
|
||||
tempfile = Tempfile.new(["stream", File.extname(name)])
|
||||
tempfile = Tempfile.new(["ppc-iostream", File.extname(name)])
|
||||
tempfile.binmode
|
||||
stream_to(object, tempfile)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user