提交 69c5e010 编写于 作者: C Carlos Antonio da Silva

Reuse variable to avoid symbol usage

上级 daf42629
......@@ -41,7 +41,7 @@ class Response
# Get and set headers for this response.
attr_accessor :header
alias_method :headers=, :header=
alias_method :headers, :header
......@@ -183,7 +183,7 @@ def message
def respond_to?(method, include_private = false)
if method.to_s == 'to_path'
stream.respond_to?(:to_path)
stream.respond_to?(method)
else
super
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册