Merge pull request #31451 from yahonda/hash_digest_class_not_initialized

Address `warning: instance variable @hash_digest_class not initialized`
This commit is contained in:
Ryuta Kamizono 2017-12-15 08:15:52 +09:00 committed by GitHub
commit f67892b65c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ module ActiveSupport
class Digest #:nodoc:
class <<self
def hash_digest_class
@hash_digest_class || ::Digest::MD5
@hash_digest_class ||= ::Digest::MD5
end
def hash_digest_class=(klass)