aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorKostiantyn Kahanskyi <kostiantyn.kahanskyi@googlemail.com>2014-09-12 18:47:33 +0200
committerKostiantyn Kahanskyi <kostiantyn.kahanskyi@googlemail.com>2014-09-12 18:47:33 +0200
commit1ac20c59f305b9375add46f81b233f93a94ae70d (patch)
tree9f5a338e50556f0bf5f93dca6cb51a241c043ca2 /activesupport
parent4bf9d1938bb144ef2a6c3d03a2d01add62e90114 (diff)
downloadrails-1ac20c59f305b9375add46f81b233f93a94ae70d.tar.gz
rails-1ac20c59f305b9375add46f81b233f93a94ae70d.tar.bz2
rails-1ac20c59f305b9375add46f81b233f93a94ae70d.zip
Changes "if secret.nil?" to unless secret in MessageVerfier
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 41e2e5a88f..6cb2884fb7 100644
--- a/activesupport/lib/active_support/message_verifier.rb
+++ b/activesupport/lib/active_support/message_verifier.rb
@@ -27,7 +27,7 @@ module ActiveSupport
class InvalidSignature < StandardError; end
def initialize(secret, options = {})
- raise ArgumentError, 'Secret should not be nil.' if secret.nil?
+ raise ArgumentError, 'Secret should not be nil.' unless secret
@secret = secret
@digest = options[:digest] || 'SHA1'
@serializer = options[:serializer] || Marshal