Created
May 3, 2010 00:26
-
-
Save rubychan/387584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment