diff options
author | Daniel Schierbeck <dasch@zendesk.com> | 2012-12-17 21:21:16 +0100 |
---|---|---|
committer | Daniel Schierbeck <dasch@zendesk.com> | 2013-02-20 16:17:55 +0100 |
commit | 9ca8c635f679ff7956496fd8e56a07f162f97fa2 (patch) | |
tree | b760f3acf9fc0baed94146715348431dcf8123f7 /actionpack | |
parent | 1879a338655aba393726de1fc5ba0d8cb4cb26d5 (diff) | |
download | rails-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.rb | 4 |
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 |