aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2017-12-14 18:44:52 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2017-12-14 18:49:52 +0000
commit2458337d0a8d21b6ae0226861fc368e4a4863634 (patch)
treec808a3baeb9a87e3b7e7f0da2affcc8d929be6a9 /activesupport
parent659c516bef2781cc66865fc78ed5dce682566d26 (diff)
downloadrails-2458337d0a8d21b6ae0226861fc368e4a4863634.tar.gz
rails-2458337d0a8d21b6ae0226861fc368e4a4863634.tar.bz2
rails-2458337d0a8d21b6ae0226861fc368e4a4863634.zip
Address `warning: instance variable @hash_digest_class not initialized`
```ruby /path/to/rails/activesupport/lib/active_support/digest.rb:7: warning: instance variable @hash_digest_class not initialized ``
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/digest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/digest.rb b/activesupport/lib/active_support/digest.rb
index 4dac32d420..d77eeb072b 100644
--- a/activesupport/lib/active_support/digest.rb
+++ b/activesupport/lib/active_support/digest.rb
@@ -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)