diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/integration.rb | 7 |
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 |