diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-06-21 13:54:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-06-21 13:54:14 -0700 |
commit | 6d71080530f8127b1a029f4314891c26e59446ce (patch) | |
tree | 590080ab30d5f740f014218bb8e5246fd9658dfa /actionpack/lib/action_view/template | |
parent | a010fc18009bfa64d1b6ff325fb0d748ff88408c (diff) | |
download | rails-6d71080530f8127b1a029f4314891c26e59446ce.tar.gz rails-6d71080530f8127b1a029f4314891c26e59446ce.tar.bz2 rails-6d71080530f8127b1a029f4314891c26e59446ce.zip |
use mutex_m rather than use a delegate system
Diffstat (limited to 'actionpack/lib/action_view/template')
-rw-r--r-- | actionpack/lib/action_view/template/resolver.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/template/resolver.rb b/actionpack/lib/action_view/template/resolver.rb index 047e3fb1f9..2bb656fac9 100644 --- a/actionpack/lib/action_view/template/resolver.rb +++ b/actionpack/lib/action_view/template/resolver.rb @@ -3,6 +3,7 @@ require "active_support/core_ext/class" require "active_support/core_ext/class/attribute_accessors" require "action_view/template" require "thread" +require "mutex_m" module ActionView # = Action View Resolver @@ -35,13 +36,9 @@ module ActionView # Threadsafe template cache class Cache #:nodoc: class CacheEntry - attr_accessor :templates - - delegate :synchronize, :to => "@mutex" + include Mutex_m - def initialize - @mutex = Mutex.new - end + attr_accessor :templates end def initialize |