1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix "warning: `*' interpreted as argument prefix"

This commit is contained in:
Ryuta Kamizono 2017-09-25 05:31:08 +09:00
parent 1a7f0890c3
commit 8b1fe28017

View file

@ -571,7 +571,7 @@ module ActionDispatch
@verifier = ActiveSupport::MessageVerifier.new(secret, digest: signed_cookie_digest, serializer: SERIALIZER) @verifier = ActiveSupport::MessageVerifier.new(secret, digest: signed_cookie_digest, serializer: SERIALIZER)
request.cookies_rotations.signed.each do |*secrets, **options| request.cookies_rotations.signed.each do |*secrets, **options|
@verifier.rotate *secrets, serializer: SERIALIZER, **options @verifier.rotate(*secrets, serializer: SERIALIZER, **options)
end end
if upgrade_legacy_signed_cookies? if upgrade_legacy_signed_cookies?
@ -604,7 +604,7 @@ module ActionDispatch
@encryptor = ActiveSupport::MessageEncryptor.new(secret, cipher: encrypted_cookie_cipher, serializer: SERIALIZER) @encryptor = ActiveSupport::MessageEncryptor.new(secret, cipher: encrypted_cookie_cipher, serializer: SERIALIZER)
request.cookies_rotations.encrypted.each do |*secrets, **options| request.cookies_rotations.encrypted.each do |*secrets, **options|
@encryptor.rotate *secrets, serializer: SERIALIZER, **options @encryptor.rotate(*secrets, serializer: SERIALIZER, **options)
end end
if upgrade_legacy_hmac_aes_cbc_cookies? if upgrade_legacy_hmac_aes_cbc_cookies?