From 5be53058775a1482c1e5655dcb0ca4430cf0dbe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Tue, 29 Apr 2008 16:34:01 -0400 Subject: Add missing clear method to memory_store --- activesupport/lib/active_support/cache/memory_store.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/cache/memory_store.rb b/activesupport/lib/active_support/cache/memory_store.rb index e0aba6b19a..4872e025cd 100644 --- a/activesupport/lib/active_support/cache/memory_store.rb +++ b/activesupport/lib/active_support/cache/memory_store.rb @@ -24,6 +24,10 @@ module ActiveSupport super @data.delete_if { |k,v| k =~ matcher } end + + def clear + @data.clear + end end end end \ No newline at end of file -- cgit v1.2.3