Fix deprecation warning in Rails 5.2.4.3

This commit is contained in:
Ryan Laughlin 2020-05-18 17:14:12 -04:00
parent fe5deb9093
commit d5a240d9d2

View file

@ -15,7 +15,7 @@ module Rack
#
# So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize
# the counter. After that we continue using the original RedisCacheStore#increment.
if options[:expires_in] && !read(name)
if options[:expires_in] && !read(name, raw: true)
write(name, amount, options)
amount