From 1ac20c59f305b9375add46f81b233f93a94ae70d Mon Sep 17 00:00:00 2001 From: Kostiantyn Kahanskyi Date: Fri, 12 Sep 2014 18:47:33 +0200 Subject: Changes "if secret.nil?" to unless secret in MessageVerfier --- activesupport/lib/active_support/message_verifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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 -- cgit v1.2.3