instance method
digest_to_class
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
digest_to_class(check_digest_type)
No documentation comment.
Parameters
-
check_digest_typereq
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