mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy
(cherry picked from commit 9020201ff5)
This commit is contained in:
parent
38c89afcf3
commit
dda2489936
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ module Rack
|
|||
store.class.name == "ActiveSupport::Cache::RedisCacheStore"
|
||||
end
|
||||
|
||||
def increment(name, amount = 1, options = {})
|
||||
def increment(name, amount = 1, **options)
|
||||
# RedisCacheStore#increment ignores options[:expires_in].
|
||||
#
|
||||
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize
|
||||
|
|
|
|||
Loading…
Reference in a new issue