Commits

Anonymous committed 9ca8c63

Use a thread safe hash

Comments (0)

Files changed (1)

actionpack/lib/action_view/dependency_tracker.rb

+require 'thread_safe'
+
 module ActionView
   class DependencyTracker
-    @trackers = Hash.new
+    @trackers = ThreadSafe::Cache.new
 
     def self.find_dependencies(name, template)
       handler = template.handler