提交 a40e3c1a 编写于 作者: A Aaron Patterson

removing crazy finalizer code until there is proof that we need it

上级 2eef53b1
......@@ -101,14 +101,6 @@ class Template
attr_reader :source, :identifier, :handler, :virtual_path, :formats,
:original_encoding
Finalizer = proc do |method_name, mod|
proc do
mod.module_eval do
remove_possible_method method_name
end
end
end
def initialize(source, identifier, handler, details)
@source = source
@identifier = identifier
......@@ -253,7 +245,6 @@ def #{method_name}(local_assigns)
begin
mod.module_eval(source, identifier, 0)
ObjectSpace.define_finalizer(self, Finalizer[method_name, mod])
method_name
rescue Exception => e # errors from template code
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册