提交 e28e0611 编写于 作者: Y Yehuda Katz

Use response_body rather than performed?

上级 964bc4e8
......@@ -41,7 +41,7 @@ class Base < Metal
module ImplicitRender
def send_action(*)
ret = super
default_render unless performed?
default_render unless response_body
ret
end
......
......@@ -4,7 +4,7 @@ class BodyPartsTest < ActionController::TestCase
RENDERINGS = [Object.new, Object.new, Object.new]
class TestController < ActionController::Base
def performed?() true end
def response_body() "" end
def index
RENDERINGS.each do |rendering|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册