aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache
diff options
context:
space:
mode:
authorTobias Lütke <tobi@jadedpixel.com>2008-04-29 16:34:01 -0400
committerTobias Lütke <tobi@jadedpixel.com>2008-04-29 16:34:01 -0400
commit5be53058775a1482c1e5655dcb0ca4430cf0dbe1 (patch)
treec5213d5fa522ea39bdf1a79d7b5013d86ef7761e /activesupport/lib/active_support/cache
parent09517e3aeadba204d5b0b8c45a03e8084c4fc0b6 (diff)
downloadrails-5be53058775a1482c1e5655dcb0ca4430cf0dbe1.tar.gz
rails-5be53058775a1482c1e5655dcb0ca4430cf0dbe1.tar.bz2
rails-5be53058775a1482c1e5655dcb0ca4430cf0dbe1.zip
Add missing clear method to memory_store
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r--activesupport/lib/active_support/cache/memory_store.rb4
1 files changed, 4 insertions, 0 deletions
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