Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't close IO object in UploadedFile#open if it's already closed
It seems that the StringIO object (and maybe some other IO objects as well) raise an "IOError: closed stream" when attempting to close them if they were already closed on older Ruby versions (2.2 and below).
- Loading branch information