Permalink
Browse files

Add missing clear method to memory_store

  • Loading branch information...
tobi committed Apr 29, 2008
1 parent 09517e3 commit 5be53058775a1482c1e5655dcb0ca4430cf0dbe1
Showing with 4 additions and 0 deletions.
  1. +4 −0 activesupport/lib/active_support/cache/memory_store.rb
@@ -24,6 +24,10 @@ def delete_matched(matcher, options = nil)
super
@data.delete_if { |k,v| k =~ matcher }
end
+
+ def clear
+ @data.clear
+ end
end
end
end

0 comments on commit 5be5305

Please sign in to comment.