From 8b1fe28017b264de770e15f2417e84ef57ae0571 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 25 Sep 2017 05:31:08 +0900 Subject: [PATCH] Fix "warning: `*' interpreted as argument prefix" --- actionpack/lib/action_dispatch/middleware/cookies.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index 06ce0b22f4..baffe200bc 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -571,7 +571,7 @@ module ActionDispatch @verifier = ActiveSupport::MessageVerifier.new(secret, digest: signed_cookie_digest, serializer: SERIALIZER) request.cookies_rotations.signed.each do |*secrets, **options| - @verifier.rotate *secrets, serializer: SERIALIZER, **options + @verifier.rotate(*secrets, serializer: SERIALIZER, **options) end if upgrade_legacy_signed_cookies? @@ -604,7 +604,7 @@ module ActionDispatch @encryptor = ActiveSupport::MessageEncryptor.new(secret, cipher: encrypted_cookie_cipher, serializer: SERIALIZER) request.cookies_rotations.encrypted.each do |*secrets, **options| - @encryptor.rotate *secrets, serializer: SERIALIZER, **options + @encryptor.rotate(*secrets, serializer: SERIALIZER, **options) end if upgrade_legacy_hmac_aes_cbc_cookies?