1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix reference

This commit is contained in:
George Claghorn 2018-05-28 16:30:26 -04:00
parent 1bdaccc0b8
commit cfb493a3a3

View file

@ -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