method

verify_integrity_of

Importance_0
v7.1.3.4 - 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 OpenSSL::Digest::MD5.file(file).base64digest == checksum
          raise ActiveStorage::IntegrityError
        end
      end
Register or log in to add new notes.