aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/messages
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-09-24 21:25:59 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2017-09-24 21:25:59 +0200
commit9d79d77813c3aca010a5b40cacbd6e68f42ce618 (patch)
tree7e6090826a522a474d832c970a80dc8dfd303cb3 /activesupport/lib/active_support/messages
parentb5aa2e0c495b310cbef90b2185ef28cd00745b23 (diff)
downloadrails-9d79d77813c3aca010a5b40cacbd6e68f42ce618.tar.gz
rails-9d79d77813c3aca010a5b40cacbd6e68f42ce618.tar.bz2
rails-9d79d77813c3aca010a5b40cacbd6e68f42ce618.zip
Use new rotation signature in cookies.
[ Michael Coyne & Kasper Timm Hansen ]
Diffstat (limited to 'activesupport/lib/active_support/messages')
-rw-r--r--activesupport/lib/active_support/messages/rotation_configuration.rb10
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