aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-09-24 22:43:45 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-09-24 22:44:40 -0700
commit0a692e48ae1aedcbfeafbc0d31272f40de29961d (patch)
tree88bc5e4fbaed3e9872c8922326b670dbad973479 /activesupport
parent5d24827e393c1fe2bcd5533c84bb4a8bec4d1265 (diff)
downloadrails-0a692e48ae1aedcbfeafbc0d31272f40de29961d.tar.gz
rails-0a692e48ae1aedcbfeafbc0d31272f40de29961d.tar.bz2
rails-0a692e48ae1aedcbfeafbc0d31272f40de29961d.zip
Use OpenSSL::Digest.const(...).new instead of OpenSSL::Digest::Digest.new(...)
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/message_verifier.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb
index 2b8817f05c..74e080a23d 100644
--- a/activesupport/lib/active_support/message_verifier.rb
+++ b/activesupport/lib/active_support/message_verifier.rb
@@ -53,7 +53,7 @@ module ActiveSupport
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