mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add default options to file_store to make it align with the other cache stores. [monki]
[#40 state:resolved]
This commit is contained in:
parent
44d2142352
commit
f3fd44f76b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue