method

ensure_integrity_of

ensure_integrity_of(key, checksum)
private

No documentation available.

# File activestorage/lib/active_storage/service/disk_service.rb, line 151
      def ensure_integrity_of(key, checksum)
        unless Digest::MD5.file(path_for(key)).base64digest == checksum
          delete key
          raise ActiveStorage::IntegrityError
        end
      end