aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-24 16:52:47 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-27 11:19:23 -0300
commitd95a16c5263d1fa53914540ee023e9031d884a22 (patch)
tree8d3aa82d687f8268f26b0f0a17ae3923078e612c /actionpack/lib/action_controller/metal.rb
parent2f59cd6fd6c54bd55d4cd55f59cae413e961626a (diff)
downloadrails-d95a16c5263d1fa53914540ee023e9031d884a22.tar.gz
rails-d95a16c5263d1fa53914540ee023e9031d884a22.tar.bz2
rails-d95a16c5263d1fa53914540ee023e9031d884a22.zip
Initialize @_request and @_response.
Diffstat (limited to 'actionpack/lib/action_controller/metal.rb')
-rw-r--r--actionpack/lib/action_controller/metal.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index 96cb5977d5..7fcc4e7211 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -85,6 +85,8 @@ module ActionController
def initialize(*)
@_headers = {"Content-Type" => "text/html"}
@_status = 200
+ @_request = nil
+ @_response = nil
super
end
@@ -99,7 +101,7 @@ module ActionController
# Basic implementations for content_type=, location=, and headers are
# provided to reduce the dependency on the RackDelegation module
# in Renderer and Redirector.
-
+
def content_type=(type)
headers["Content-Type"] = type.to_s
end