Flowdock
method

ensure_integrity_of

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: DiskService
ensure_integrity_of(key, checksum) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/disk_service.rb, line 139
      def ensure_integrity_of(key, checksum)
        unless Digest::MD5.file(path_for(key)).base64digest == checksum
          delete key
          raise ActiveStorage::IntegrityError
        end
      end
Register or log in to add new notes.