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

push response creation down since third param is never used.

上级 a5e47969
......@@ -8,9 +8,9 @@ module RackDelegation
delegate :headers, :status=, :location=, :content_type=,
:status, :location, :content_type, :to => "@_response"
def dispatch(action, request, response = ActionDispatch::Response.new)
@_response ||= response
@_response.request ||= request
def dispatch(action, request)
@_response = ActionDispatch::Response.new
@_response.request = request
super(action, request)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册