passbook
passbook copied to clipboard
File output causes IOError because of temp_file.close
Removing the call to .close
will fix it. You can't access an instance of Tempfile
after close
is called. Perhaps adding another method like pass.cleanup!
that closes the temp file is a good idea.
Hi, Could you please provide a use case in order to reproduce this IOError