diff options
-rw-r--r-- | activestorage/lib/active_storage/downloader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/downloader.rb b/activestorage/lib/active_storage/downloader.rb index 5953fd08fb..2aa56a729a 100644 --- a/activestorage/lib/active_storage/downloader.rb +++ b/activestorage/lib/active_storage/downloader.rb @@ -36,7 +36,7 @@ module ActiveStorage end def verify_integrity_of(file) - unless Digest::MD5.file(file).base64digest == checksum + unless Digest::MD5.file(file).base64digest == blob.checksum raise ActiveStorage::IntegrityError end end |