aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2011-05-31 23:17:20 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2011-05-31 23:31:35 +0100
commit1f34a79373854e36c7bf77ffa70688cda6d27a5c (patch)
treeedacc899fa11eeb66679d6c49a9a9496ad8a9457 /activesupport
parent87762245e9070a0e7ebe446ea6930fa368bf0e16 (diff)
downloadrails-1f34a79373854e36c7bf77ffa70688cda6d27a5c.tar.gz
rails-1f34a79373854e36c7bf77ffa70688cda6d27a5c.tar.bz2
rails-1f34a79373854e36c7bf77ffa70688cda6d27a5c.zip
Make MemCacheStore work with Ruby 1.9 and -Ku
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/cache/mem_cache_store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb
index 7ef1497ac2..64d2c3bff6 100644
--- a/activesupport/lib/active_support/cache/mem_cache_store.rb
+++ b/activesupport/lib/active_support/cache/mem_cache_store.rb
@@ -31,7 +31,7 @@ module ActiveSupport
DELETED = "DELETED\r\n"
end
- ESCAPE_KEY_CHARS = /[\x00-\x20%\x7F-\xFF]/
+ ESCAPE_KEY_CHARS = /[\x00-\x20%\x7F-\xFF]/n
def self.build_mem_cache(*addresses)
addresses = addresses.flatten