Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7434

Show
Ignore:
Timestamp:
09/09/07 22:55:16 (1 year ago)
Author:
david
Message:

Removed deprecated ActionController::Base.cookie (use ActionController#Base.cookies[]= instead)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r7432 r7434  
    11*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) 
    29 
    310* 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  
    3030      def cookies 
    3131        CookieJar.new(self) 
    32       end 
    33  
    34       # Deprecated cookie writer method 
    35       def cookie(*options) 
    36         response.headers['cookie'] << CGI::Cookie.new(*options) 
    3732      end 
    3833  end 
  • trunk/actionpack/test/controller/cookie_test.rb

    r7403 r7434  
    33class CookieTest < Test::Unit::TestCase 
    44  class TestController < ActionController::Base 
    5     def authenticate_with_deprecated_writer 
    6       cookie "name" => "user_name", "value" => "david" 
    7     end 
    8  
    95    def authenticate 
    106      cookies["user_name"] = "david"