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:
commit
f67892b65c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user