Skip to content

Commit

Permalink
Remove deprecated HMAC.secret_key.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erich Menge committed Apr 14, 2013
1 parent 4d83cc3 commit 102d8db
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/signed_form/hmac.rb
Expand Up @@ -3,12 +3,6 @@ class HMAC
attr_accessor :secret_key
attr_accessor :digest

def self.secret_key=(key)
SignedForm.secret_key = key
warn "SignedForm::HMAC.secret_key is depreciated and will be removed in the next release. "\
"Please use SignedForm.secret_key instead."
end

def initialize(options = {})
self.secret_key = options[:secret_key]
self.digest = options.fetch(:digest, OpenSSL::Digest::SHA1)
Expand Down

0 comments on commit 102d8db

Please sign in to comment.