diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-29 08:04:39 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-29 08:04:39 +0000 |
commit | 4f3bf6cb23991af8fac69b67dc73844f6a92205e (patch) | |
tree | bfb4b5e74fc9bbfe61d7ad91781d2a2256348b3c /actionpack/lib | |
parent | f0152fb610df134f5b3aaeea08ab82cd9643dd5a (diff) | |
download | rails-4f3bf6cb23991af8fac69b67dc73844f6a92205e.tar.gz rails-4f3bf6cb23991af8fac69b67dc73844f6a92205e.tar.bz2 rails-4f3bf6cb23991af8fac69b67dc73844f6a92205e.zip |
Deprecate @cookies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 6 | ||||
-rw-r--r-- | actionpack/lib/action_controller/cookies.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 743c97863a..02d731c4c8 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1014,7 +1014,7 @@ module ActionController #:nodoc: end def assign_shortcuts(request, response) - @_request, @_params, @cookies = request, request.parameters, request.cookies + @_request, @_params, @_cookies = request, request.parameters, request.cookies @response = response @response.session = request.session @@ -1030,7 +1030,7 @@ module ActionController #:nodoc: # TODO: assigns cookies headers params request response template - DEPRECATED_INSTANCE_VARIABLES = %w(flash params request session) + DEPRECATED_INSTANCE_VARIABLES = %w(cookies flash params request session) # Gone after 1.2. def assign_deprecated_shortcuts(request, response) @@ -1129,7 +1129,7 @@ module ActionController #:nodoc: else %w(@assigns @performed_redirect @performed_render @_request @request @response @_params @params @_session @session - @cookies @template @request_origin @parent_controller) + @_cookies @cookies @template @request_origin @parent_controller) end end diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index f5484f3676..67086a09cb 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -39,7 +39,7 @@ module ActionController #:nodoc: class CookieJar < Hash #:nodoc: def initialize(controller) - @controller, @cookies = controller, controller.instance_variable_get("@cookies") + @controller, @cookies = controller, controller.request.cookies super() update(@cookies) end |