diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-04-26 12:21:36 +1200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-04-26 12:21:36 +1200 |
commit | f3fd44f76b64d6c30967a31b91709d27bce41f72 (patch) | |
tree | 9c7106f411f77dbd9e4393de9ac5b495f80b7ba4 /activesupport | |
parent | 44d214235271cb6d2af1c327d592a3010e1ced3e (diff) | |
download | rails-f3fd44f76b64d6c30967a31b91709d27bce41f72.tar.gz rails-f3fd44f76b64d6c30967a31b91709d27bce41f72.tar.bz2 rails-f3fd44f76b64d6c30967a31b91709d27bce41f72.zip |
Add default options to file_store to make it align with the other cache stores. [monki]
[#40 state:resolved]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/cache/file_store.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index 88f9ac19db..16a2509ce2 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -20,14 +20,14 @@ module ActiveSupport 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 |