Changeset 7434
- Timestamp:
- 09/09/07 22:55:16 (1 year ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/cookies.rb (modified) (1 diff)
- trunk/actionpack/test/controller/cookie_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r7432 r7434 1 1 *SVN* 2 3 * Removed deprecated methods [DHH]: 4 5 - ActionController::Base#keep_flash (use flash.keep instead) 6 - ActionController::Base#expire_matched_fragments (just call expire_fragment with a regular expression) 7 - ActionController::Base.template_root/= methods (use ActionController#Base.view_paths/= instead) 8 - ActionController::Base.cookie (use ActionController#Base.cookies[]= instead) 2 9 3 10 * Removed the deprecated behavior of appending ".png" to image_tag/image_path calls without an existing extension [DHH] trunk/actionpack/lib/action_controller/cookies.rb
r7383 r7434 30 30 def cookies 31 31 CookieJar.new(self) 32 end33 34 # Deprecated cookie writer method35 def cookie(*options)36 response.headers['cookie'] << CGI::Cookie.new(*options)37 32 end 38 33 end trunk/actionpack/test/controller/cookie_test.rb
r7403 r7434 3 3 class CookieTest < Test::Unit::TestCase 4 4 class TestController < ActionController::Base 5 def authenticate_with_deprecated_writer6 cookie "name" => "user_name", "value" => "david"7 end8 9 5 def authenticate 10 6 cookies["user_name"] = "david"