mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-25 14:47:43 +00:00
Merge pull request #509 from fukayatsu/fix-ruby-2.7-kw-warnings-on-increment
Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy
This commit is contained in:
commit
e40c3dda44
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ module Rack
|
||||||
store.class.name == "ActiveSupport::Cache::RedisCacheStore"
|
store.class.name == "ActiveSupport::Cache::RedisCacheStore"
|
||||||
end
|
end
|
||||||
|
|
||||||
def increment(name, amount = 1, options = {})
|
def increment(name, amount = 1, **options)
|
||||||
# RedisCacheStore#increment ignores options[:expires_in].
|
# RedisCacheStore#increment ignores options[:expires_in].
|
||||||
#
|
#
|
||||||
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize
|
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue