Skip to content

Commit

Permalink
Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy
Browse files Browse the repository at this point in the history
(cherry picked from commit 9020201)
  • Loading branch information
fukayatsu authored and grzuy committed Jan 23, 2021
1 parent 38c89af commit dda2489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/attack/store_proxy/redis_cache_store_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.handle?(store)
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
Expand Down

0 comments on commit dda2489

Please sign in to comment.