aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-05-18 01:28:43 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-05-18 01:28:43 +0000
commita56081d99ab056859679a92fb8f4a95e02bb6b5c (patch)
tree989eea4ecc10aaec005bf971575464c6321a4759
parentd8d6ef8a3d3bbb86d0581329bfd0c026312e8847 (diff)
downloadrails-a56081d99ab056859679a92fb8f4a95e02bb6b5c.tar.gz
rails-a56081d99ab056859679a92fb8f4a95e02bb6b5c.tar.bz2
rails-a56081d99ab056859679a92fb8f4a95e02bb6b5c.zip
Pass stdinput to super.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--actionpack/lib/action_controller/integration.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb
index 6092b87219..97e7427ea7 100644
--- a/actionpack/lib/action_controller/integration.rb
+++ b/actionpack/lib/action_controller/integration.rb
@@ -195,14 +195,13 @@ module ActionController
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