diff options
-rw-r--r-- | activesupport/lib/active_support/message_verifier.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb index 304058253c..b24acb9f47 100644 --- a/activesupport/lib/active_support/message_verifier.rb +++ b/activesupport/lib/active_support/message_verifier.rb @@ -39,7 +39,8 @@ module ActiveSupport private def generate_digest(data) + require 'openssl' unless defined?(OpenSSL) OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new(@digest), @secret, data) end end -end
\ No newline at end of file +end |