Close orphan file descriptor in Fog storage

This commit is contained in:
Kiyoshi '13k' Murata 2012-02-09 20:29:55 -02:00 committed by James Miller
parent 30167ec0ea
commit 5ee932e5c6
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ module CarrierWave
:key => path,
:public => @uploader.fog_public
}.merge(@uploader.fog_attributes))
fog_file.close if fog_file && !fog_file.closed?
true
end