mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
object_id may be negative, producing an invalid symbol. h/t Markus Schirp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user