From cccc83af091bff5203fa50570079a4597d34bbcc Mon Sep 17 00:00:00 2001 From: Grzegorz Kazulak Date: Sat, 11 Sep 2010 10:44:35 +0200 Subject: [PATCH] make a matching variable consistent with rest of the methods --- .../lib/active_support/cache/file_store.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index 84f6f29..80ab3ac 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -156,7 +156,7 @@ module ActiveSupport # Translate a file path into a key. def file_path_key(path) fname = path[cache_path.size, path.size].split(File::SEPARATOR, 4).last - fname.gsub(UNESCAPE_FILENAME_CHARS){|match| $1.ord.to_s(16)} + fname.gsub(UNESCAPE_FILENAME_CHARS){|match| match.ord.to_s(16)} end # Delete empty directories in the cache. -- 1.7.1