instance method digest_to_class

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

digest_to_class(check_digest_type)

No documentation comment.

Parameters

check_digest_type req
Source
# File activestorage/lib/active_storage/service/s3_service.rb, line 133
      def digest_to_class(check_digest_type)
        case check_digest_type
        when :md5
          OpenSSL::Digest::MD5
        when :sha256
          OpenSSL::Digest::SHA256
        else
          raise ActiveStorage::IntegrityError, "Digest type #{check_digest_type} is not supported"
        end
      end

Defined in activestorage/lib/active_storage/service/s3_service.rb line 133 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Service::S3Service

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close