diff options
Diffstat (limited to 'activesupport/lib/active_support/messages')
-rw-r--r-- | activesupport/lib/active_support/messages/rotation_configuration.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/messages/rotation_configuration.rb b/activesupport/lib/active_support/messages/rotation_configuration.rb index 908658ff02..233703b558 100644 --- a/activesupport/lib/active_support/messages/rotation_configuration.rb +++ b/activesupport/lib/active_support/messages/rotation_configuration.rb @@ -9,15 +9,15 @@ module ActiveSupport @signed, @encrypted = [], [] end - def rotate(kind = nil, **options) + def rotate(kind = nil, *args) case kind when :signed - @signed << options + @signed << args when :encrypted - @encrypted << options + @encrypted << args else - rotate :signed, options - rotate :encrypted, options + rotate :signed, args + rotate :encrypted, args end end end |