Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use OpenSSL::Digest.const(...).new instead of OpenSSL::Digest::Digest…

….new(...)
  • Loading branch information...
commit 0a692e48ae1aedcbfeafbc0d31272f40de29961d 1 parent 5d24827
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/message_verifier.rb
View
2  activesupport/lib/active_support/message_verifier.rb
@@ -53,7 +53,7 @@ def secure_compare(a, b)
def generate_digest(data)
require 'openssl' unless defined?(OpenSSL)
- OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new(@digest), @secret, data)
+ OpenSSL::HMAC.hexdigest(OpenSSL::Digest.const_get(@digest).new, @secret, data)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.