Entry 3819

diff example

   

Submitted by murphy on May 14, 2010 at 1:51 a.m.
Language: Diff. Code size: 358 bytes.

@@ -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

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).