aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDaniel Schierbeck <dasch@zendesk.com>2012-12-17 21:21:16 +0100
committerDaniel Schierbeck <dasch@zendesk.com>2013-02-20 16:17:55 +0100
commit9ca8c635f679ff7956496fd8e56a07f162f97fa2 (patch)
treeb760f3acf9fc0baed94146715348431dcf8123f7 /actionpack
parent1879a338655aba393726de1fc5ba0d8cb4cb26d5 (diff)
downloadrails-9ca8c635f679ff7956496fd8e56a07f162f97fa2.tar.gz
rails-9ca8c635f679ff7956496fd8e56a07f162f97fa2.tar.bz2
rails-9ca8c635f679ff7956496fd8e56a07f162f97fa2.zip
Use a thread safe hash
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/dependency_tracker.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/dependency_tracker.rb b/actionpack/lib/action_view/dependency_tracker.rb
index 946a8f0fd1..3478e34fe3 100644
--- a/actionpack/lib/action_view/dependency_tracker.rb
+++ b/actionpack/lib/action_view/dependency_tracker.rb
@@ -1,6 +1,8 @@
+require 'thread_safe'
+
module ActionView
class DependencyTracker
- @trackers = Hash.new
+ @trackers = ThreadSafe::Cache.new
def self.find_dependencies(name, template)
handler = template.handler