diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-09-25 05:31:08 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-09-25 05:31:08 +0900 |
commit | 8b1fe28017b264de770e15f2417e84ef57ae0571 (patch) | |
tree | 5ba08f5fcfcea3c8d803763f63ab740c587dc647 /actionpack/lib/action_dispatch | |
parent | 1a7f0890c3f0472ca5521d391dd0cc611c9ca328 (diff) | |
download | rails-8b1fe28017b264de770e15f2417e84ef57ae0571.tar.gz rails-8b1fe28017b264de770e15f2417e84ef57ae0571.tar.bz2 rails-8b1fe28017b264de770e15f2417e84ef57ae0571.zip |
Fix "warning: `*' interpreted as argument prefix"
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 4 |
1 files 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? |