Skip to content

Commit

Permalink
Use OpenSSL::Digest.const(...).new instead of OpenSSL::Digest::Digest…
Browse files Browse the repository at this point in the history
….new(...)
  • Loading branch information
jeremy committed Sep 25, 2009
1 parent 5d24827 commit 0a692e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/message_verifier.rb
Expand Up @@ -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

0 comments on commit 0a692e4

Please sign in to comment.