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:
Gonzalo Rodriguez 2020-12-27 00:31:32 -03:00 committed by GitHub
commit e40c3dda44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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