method

verify_integrity_of

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Downloader
verify_integrity_of(file, 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/downloader.rb, line 37
      def verify_integrity_of(file, checksum))
        unless Digest::MD5.file(file).base64digest == checksum
          raise ActiveStorage::IntegrityError
        end
      end
Register or log in to add new notes.