diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-05-29 19:49:16 -0700 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-05-29 19:49:16 -0700 |
commit | 4ab1f7d0bb27544aac7d035d863cabd85670a0ad (patch) | |
tree | 1c9ff5c4e10f7954411992abed279210c56fa083 /activesupport | |
parent | 3f2e83d964fcb4cd7f7f2ed8fb2b2592ffc57647 (diff) | |
download | rails-4ab1f7d0bb27544aac7d035d863cabd85670a0ad.tar.gz rails-4ab1f7d0bb27544aac7d035d863cabd85670a0ad.tar.bz2 rails-4ab1f7d0bb27544aac7d035d863cabd85670a0ad.zip |
use OpenSSL::Cipher instead of deprecated OpenSSL::Cipher::Cipher for cipher creation.
Based on https://github.com/rails/rails/pull/25192#discussion_r65018222 and http://ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/Cipher/Cipher.html
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/message_encryptor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/message_encryptor.rb b/activesupport/lib/active_support/message_encryptor.rb index 2dde01c844..721efea789 100644 --- a/activesupport/lib/active_support/message_encryptor.rb +++ b/activesupport/lib/active_support/message_encryptor.rb @@ -97,7 +97,7 @@ module ActiveSupport end def new_cipher - OpenSSL::Cipher::Cipher.new(@cipher) + OpenSSL::Cipher.new(@cipher) end def verifier |