提交 16c01224 编写于 作者: Y Yehuda Katz

ActionController::Metal#to_rack converted to #to_a to match normal rack convention

上级 70d779aa
......@@ -72,11 +72,11 @@ def location=(url)
def call(name, env)
@_env = env
process(name)
to_rack
to_a
end
# :api: private
def to_rack
def to_a
[status, headers, response_body]
end
......
......@@ -20,7 +20,7 @@ def params
end
# :api: private
def to_rack
def to_a
@_response.prepare!
@_response.to_a
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册