aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2017-05-14 22:06:34 +0100
committerJeremy Daer <jeremydaer@gmail.com>2017-06-10 14:48:20 -0700
commit52f90044a159559d94b4f597e9d79b44024ed09a (patch)
treed33eb020cbe50c8e8aa8540751c17a76c1d68b52 /activesupport/lib/active_support/cache
parent816a3763d9bb070bf339de32c6a3ce31a45369f8 (diff)
downloadrails-52f90044a159559d94b4f597e9d79b44024ed09a.tar.gz
rails-52f90044a159559d94b4f597e9d79b44024ed09a.tar.bz2
rails-52f90044a159559d94b4f597e9d79b44024ed09a.zip
Cache: test coverage for cleanup behavior with local cache strategy
No need to pass `#cleanup` options through to `LocalCache#clear`. Fixes #29081. References #25628.
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r--activesupport/lib/active_support/cache/strategy/local_cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb
index 0e4f383fb9..69b3a93a05 100644
--- a/activesupport/lib/active_support/cache/strategy/local_cache.rb
+++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb
@@ -87,7 +87,7 @@ module ActiveSupport
def cleanup(options = nil) # :nodoc:
return super unless cache = local_cache
- cache.clear(options)
+ cache.clear
super
end