Fix deprecation warnings and call super

上级 cf0dd4a7
......@@ -19,7 +19,7 @@ def find_template(*args)
end
class Context < ActionView::Base
def initialize
def initialize(*)
super
@output_buffer = "original"
@virtual_path = nil
......@@ -64,7 +64,7 @@ def render(locals = {})
end
def setup
@context = Context.with_empty_template_cache.new
@context = Context.with_empty_template_cache.empty
super
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册