Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing clear method to memory_store
  • Loading branch information
Tobias Lütke committed Apr 29, 2008
1 parent 09517e3 commit 5be5305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activesupport/lib/active_support/cache/memory_store.rb
Expand Up @@ -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.