提交 a56081d9 编写于 作者: J Jeremy Kemper

Pass stdinput to super.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 d8d6ef8a
......@@ -195,14 +195,13 @@ def url_for(options)
private
class MockCGI < CGI #:nodoc:
attr_accessor :stdinput, :stdoutput, :env_table
attr_accessor :stdoutput, :env_table
def initialize(env, input=nil)
def initialize(env, input = nil)
self.env_table = env
self.stdinput = StringIO.new(input || "")
self.stdoutput = StringIO.new
super()
super('query', StringIO.new(input || ''))
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册