mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Replace global Hash with TS::Cache.
This commit is contained in:
parent
fa915461bc
commit
2dea0dd099
1 changed files with 4 additions and 1 deletions
|
@ -1,9 +1,12 @@
|
|||
# encoding: utf-8
|
||||
|
||||
require 'thread_safe'
|
||||
|
||||
module ActionDispatch
|
||||
module Journey # :nodoc:
|
||||
module Visitors # :nodoc:
|
||||
class Visitor # :nodoc:
|
||||
DISPATCH_CACHE = Hash.new { |h,k|
|
||||
DISPATCH_CACHE = ThreadSafe::Cache.new { |h,k|
|
||||
h[k] = :"visit_#{k}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue