diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-09-24 22:58:17 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2017-09-24 22:58:17 +0200 |
commit | f9a6c00dcc95e9c9f5c064913f0a6b65fd9655a6 (patch) | |
tree | 2c25a18dd120eb7bd133b297dcfe4d8198ef9fb3 /activesupport/lib/active_support/messages | |
parent | 8b1fe28017b264de770e15f2417e84ef57ae0571 (diff) | |
download | rails-f9a6c00dcc95e9c9f5c064913f0a6b65fd9655a6.tar.gz rails-f9a6c00dcc95e9c9f5c064913f0a6b65fd9655a6.tar.bz2 rails-f9a6c00dcc95e9c9f5c064913f0a6b65fd9655a6.zip |
Fix RotationConfiguration test and remove nil-kind rotates.
Diffstat (limited to 'activesupport/lib/active_support/messages')
-rw-r--r-- | activesupport/lib/active_support/messages/rotation_configuration.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/messages/rotation_configuration.rb b/activesupport/lib/active_support/messages/rotation_configuration.rb index 233703b558..bd50d6d348 100644 --- a/activesupport/lib/active_support/messages/rotation_configuration.rb +++ b/activesupport/lib/active_support/messages/rotation_configuration.rb @@ -9,15 +9,12 @@ module ActiveSupport @signed, @encrypted = [], [] end - def rotate(kind = nil, *args) + def rotate(kind, *args) case kind when :signed @signed << args when :encrypted @encrypted << args - else - rotate :signed, args - rotate :encrypted, args end end end |