Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use mutex_m rather than use a delegate system
  • Loading branch information
tenderlove committed Jun 21, 2012
1 parent a010fc1 commit 6d71080
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions actionpack/lib/action_view/template/resolver.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6d71080

Please sign in to comment.