Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Defining a new method is atomic, no mutex needed.

  • Loading branch information...
commit faf8364050c0a3925a8b2af85b6b5c9e94090986 1 parent 0b22a96
@josh josh authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 actionpack/lib/action_view/renderable.rb
View
10 actionpack/lib/action_view/renderable.rb
@@ -4,10 +4,6 @@ module ActionView
module Renderable #:nodoc:
extend ActiveSupport::Memoizable
- def self.included(base)
- @@mutex = Mutex.new
- end
-
def filename
'compiled-template'
end
@@ -64,10 +60,8 @@ def method_name(local_assigns)
def compile(local_assigns)
render_symbol = method_name(local_assigns)
- @@mutex.synchronize do
- if recompile?(render_symbol)
- compile!(render_symbol, local_assigns)
- end
+ if recompile?(render_symbol)
+ compile!(render_symbol, local_assigns)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.