From 7001178b6d0760168559fd73ecf5555495e02776 Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Mon, 3 Sep 2018 17:55:05 -0300 Subject: [PATCH] Remove unnecessary wrapping of ActiveSupport::Cache::RedisCacheStore#read `raw: true` isn't doing anything special for `read`, only for `write` --- lib/rack/attack/store_proxy/redis_cache_store_proxy.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb index c7feaa7..2f7296c 100644 --- a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb +++ b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb @@ -24,10 +24,6 @@ module Rack end end - def read(name, options = {}) - super(name, options.merge!(raw: true)) - end - def write(name, value, options = {}) super(name, value, options.merge!(raw: true)) end