lib/carrierwave/uploader/download.rb in carrierwave-1.2.2 vs lib/carrierwave/uploader/download.rb in carrierwave-1.2.3
- old
+ new
@@ -11,9 +11,10 @@
class RemoteFile
def initialize(uri, remote_headers = {})
@uri = uri
@remote_headers = remote_headers
+ @file = nil
end
def original_filename
filename = filename_from_header || filename_from_uri
mime_type = MIME::Types[file.content_type].first