aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/message_verifier.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-20 15:18:42 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-20 15:18:42 +0100
commit6a6fc4e1db2469bd309c074f607abb60764ba20d (patch)
treef25d87262f1a77ae9aea66543cf4e132d5bf7e3a /activesupport/lib/active_support/message_verifier.rb
parent6c57177f2c7f4f934716d588545902d5fc00fa99 (diff)
downloadrails-6a6fc4e1db2469bd309c074f607abb60764ba20d.tar.gz
rails-6a6fc4e1db2469bd309c074f607abb60764ba20d.tar.bz2
rails-6a6fc4e1db2469bd309c074f607abb60764ba20d.zip
Remove deprecations from Active Support.
Diffstat (limited to 'activesupport/lib/active_support/message_verifier.rb')
-rw-r--r--activesupport/lib/active_support/message_verifier.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb
index 9d7c81142a..30ac44f6fa 100644
--- a/activesupport/lib/active_support/message_verifier.rb
+++ b/activesupport/lib/active_support/message_verifier.rb
@@ -27,11 +27,6 @@ module ActiveSupport
class InvalidSignature < StandardError; end
def initialize(secret, options = {})
- unless options.is_a?(Hash)
- ActiveSupport::Deprecation.warn "The second parameter should be an options hash. Use :digest => 'algorithm' to specify the digest algorithm."
- options = { :digest => options }
- end
-
@secret = secret
@digest = options[:digest] || 'SHA1'
@serializer = options[:serializer] || Marshal