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

Use response_body rather than performed?

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