mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Initialize @_request and @_response.
This commit is contained in:
parent
2f59cd6fd6
commit
d95a16c526
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue