Skip to content

Commit

Permalink
Add default options to file_store to make it align with the other cac…
Browse files Browse the repository at this point in the history
…he stores. [monki]

[#40 state:resolved]
  • Loading branch information
NZKoz committed Apr 26, 2008
1 parent 44d2142 commit f3fd44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/cache/file_store.rb
Expand Up @@ -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
Expand Down

0 comments on commit f3fd44f

Please sign in to comment.