Inline diff highlighting

Diff code posted by murphy < github
created at 11 Jun 15:14

Edit | Back
1
2
3
4
5
6
7
8
9
@@ -140,7 +140,7 @@ module ActiveSupport
 
         private
           def thread_local_key
-            @thread_local_key ||= "#{self.class.name.underscore}_local_cache_#{self.object_id}".gsub("/", "_").to_sym
+            @thread_local_key ||= "#{self.class.name.underscore}_local_cache_#{object_id}".gsub(/[\/-]/, '_').to_sym
           end
 
           def local_cache
380 Bytes in 2 ms with coderay