diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-29 08:26:45 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-29 08:26:45 +0000 |
commit | d15d15b2c236a556f89536961adf2de7f1fd04dc (patch) | |
tree | 37f35f4cec5c7bdf34cbf6fbcd2a5ef44cf8a97c /actionpack/lib/action_controller/base.rb | |
parent | d7b5b44a0e6fddb772c1c0779489c17e1caa4a39 (diff) | |
download | rails-d15d15b2c236a556f89536961adf2de7f1fd04dc.tar.gz rails-d15d15b2c236a556f89536961adf2de7f1fd04dc.tar.bz2 rails-d15d15b2c236a556f89536961adf2de7f1fd04dc.zip |
Deprecate @response
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5207 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 5e5eab586c..a4b3a7314a 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -304,7 +304,7 @@ module ActionController #:nodoc: # <tt>response.headers["Cache-Control"] = "no-cache"</tt>. Can also be used to access the final body HTML after a template # has been rendered through response.body -- useful for <tt>after_filter</tt>s that wants to manipulate the output, # such as a OutputCompressionFilter. - attr_accessor :response + attr_internal :response # Holds a hash of objects in the session. Accessed like <tt>session[:person]</tt> to get the object tied to the "person" # key. The session will hold any type of object as values, but the key should be a string or symbol. @@ -1016,14 +1016,14 @@ module ActionController #:nodoc: def assign_shortcuts(request, response) @_request, @_params, @_cookies = request, request.parameters, request.cookies - @response = response - @response.session = request.session + @_response = response + @_response.session = request.session - @_session = @response.session - @template = @response.template - @assigns = @response.template.assigns + @_session = @_response.session + @template = @_response.template + @assigns = @_response.template.assigns - @_headers = @response.headers + @_headers = @_response.headers assign_deprecated_shortcuts(request, response) end @@ -1128,8 +1128,9 @@ module ActionController #:nodoc: %w(@assigns @performed_redirect @performed_render) else %w(@assigns @performed_redirect @performed_render - @_request @request @response @_params @params @_session @session - @_cookies @cookies @template @request_origin @parent_controller) + @_request @request @_response @response @_params @params + @_session @session @_cookies @cookies + @template @request_origin @parent_controller) end end |