提交 146a5305 编写于 作者: C Carlhuda

Add memoizing to AD::Request

上级 60bbf16b
......@@ -30,6 +30,14 @@ def #{env.sub(/^HTTP_/n, '').downcase}
METHOD
end
def self.new(env)
if request = env["action_dispatch.request"] && request.instance_of?(self)
return request
end
super
end
def key?(key)
@env.key?(key)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册