Browse files

use mutex_m rather than use a delegate system

  • Loading branch information...
1 parent a010fc1 commit 6d71080530f8127b1a029f4314891c26e59446ce @tenderlove tenderlove committed Jun 21, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 actionpack/lib/action_view/template/resolver.rb
View
9 actionpack/lib/action_view/template/resolver.rb
@@ -3,6 +3,7 @@
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 @@ def to_str
# 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

0 comments on commit 6d71080

Please sign in to comment.