Fix `migrate_to_s3` rake task, `File#close!` is not a valid method.

This commit is contained in:
Guo Xiang Tan 2018-08-16 13:22:51 +08:00
parent 8e240af3ea
commit 33f4aa2835
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ def migrate_to_s3
putc "X"
next
ensure
file.try(:close!) rescue nil
file&.close
end
# remap the URL