提交 d9bd75a0 编写于 作者: V Vijay Dev

copy edits[ci skip]

上级 132e3fdf
......@@ -183,9 +183,7 @@ def response_body=(body)
super
end
# Tests if render or redirect already happended. Could be useful when used as a
# conditional to <tt>return</tt> early out a controller action to avoid <tt>AbstractController::DoubleRenderError</tt>
# example in case of multiple render/redirects in single controller action
# Tests if render or redirect has already happened.
def performed?
response_body || (response && response.committed?)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册