Permalink
Browse files

Add default options to file_store to make it align with the other cac…

…he stores. [monki]

[#40 state:resolved]
  • Loading branch information...
NZKoz committed Apr 26, 2008
1 parent 44d2142 commit f3fd44f76b64d6c30967a31b91709d27bce41f72
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/cache/file_store.rb
@@ -20,14 +20,14 @@ def write(name, value, options = nil)
RAILS_DEFAULT_LOGGER.error "Couldn't create cache directory: #{name} (#{e.message})" if RAILS_DEFAULT_LOGGER
end
- def delete(name, options)
+ def delete(name, options = nil)
super
File.delete(real_file_path(name))
rescue SystemCallError => e
# If there's no cache, then there's nothing to complain about
end
- def delete_matched(matcher, options)
+ def delete_matched(matcher, options = nil)
super
search_dir(@cache_path) do |f|
if f =~ matcher

0 comments on commit f3fd44f

Please sign in to comment.