aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-05-28 16:30:26 -0400
committerGeorge Claghorn <george@basecamp.com>2018-05-28 16:30:26 -0400
commitcfb493a3a311110a7b5bac6e0e74c6b5ead1040b (patch)
tree809f320a665414d17e7bc05d1fd4a842489f5275 /activestorage
parent1bdaccc0b8cf8aac0dc833d6db14b9a902593ff5 (diff)
downloadrails-cfb493a3a311110a7b5bac6e0e74c6b5ead1040b.tar.gz
rails-cfb493a3a311110a7b5bac6e0e74c6b5ead1040b.tar.bz2
rails-cfb493a3a311110a7b5bac6e0e74c6b5ead1040b.zip
Fix reference
Diffstat (limited to 'activestorage')
-rw-r--r--activestorage/lib/active_storage/downloader.rb2
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