Ensure that we cache attachment's file name before we perform assignment
There was an issue on assignment another S3 attachment object to another object whereas calling #to_file on S3 attachment will create a Tempfile, which would then having a different file name than original version. By caching the filename first before calling #to_file, we're ensuring that filename is the original one. Fixes #9
Showing
Please
register
or
sign in
to comment