Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 16, 2011
  1. @josevalim
Commits on Nov 23, 2011
  1. @lest
Commits on Oct 18, 2011
  1. @avakhov
Commits on Sep 1, 2011
  1. @tenderlove
Commits on Jun 30, 2011
  1. @josevalim
Commits on Jun 5, 2011
  1. @pixeltrix

    Add backward compatibility for testing cookies

    pixeltrix authored
    This commit restores the ability to assign cookies for testing via
    @request.env['HTTP_COOKIE'] and @request.cookies, e.g:
    
        @request.env['HTTP_COOKIE'] = 'user_name=david'
        get :index
        assert_equal 'david', cookies[:user_name]
    
    and
    
        @request.cookies[:user_name] = 'david'
        get :index
        assert_equal 'david', cookies[:user_name]
    
    Assigning via cookies[] is the preferred method and will take precedence
    over the other two methods. This is so that cookies set in controller
    actions have precedence and are carried over between calls to get, post, etc.
  2. @pixeltrix
Commits on Jun 4, 2011
  1. @pixeltrix

    Refactor ActionController::TestCase cookies

    pixeltrix authored
    Assigning cookies for test cases should now use cookies[], e.g:
    
      cookies[:email] = 'user@example.com'
      get :index
      assert_equal 'user@example.com', cookies[:email]
    
    To clear the cookies, use clear, e.g:
    
      cookies.clear
      get :index
      assert_nil cookies[:email]
    
    We now no longer write out HTTP_COOKIE and the cookie jar is
    persistent between requests so if you need to manipulate the environment
    for your test you need to do it before the cookie jar is created.
Commits on May 25, 2011
  1. @fxn

    Merge branch 'master' of git://github.com/lifo/docrails

    fxn authored
    Conflicts:
    	actionmailer/lib/action_mailer/base.rb
    	activesupport/lib/active_support/core_ext/kernel/requires.rb
Commits on May 23, 2011
  1. @smartinez87
  2. @smartinez87
  3. @jonleighton

    Replace references to ActiveSupport::SecureRandom with just SecureRan…

    jonleighton authored
    …dom, and require 'securerandom' from the stdlib when active support is required.
Commits on May 19, 2011
  1. @stevenbristol
Commits on Apr 6, 2011
  1. @tenderlove
  2. @spastorino

    raise if someone tries to modify the cookies when it was already stre…

    spastorino authored
    …amed back to the client or converted to HTTP headers
Commits on Jan 21, 2011
  1. @brainopia @josevalim

    Add tld_length option when using domain :all in cookies

    brainopia authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
  2. @brainopia @josevalim

    Support list of possible domains for cookies

    brainopia authored josevalim committed
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Dec 15, 2010
  1. @brainopia @vijaydev

    Fix edge cases for domain :all option on cookie store

    brainopia authored vijaydev committed
    Dont set explicit domain for cookies if host is not a domain name
    
    [#6002 state:committed]
    
    Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Commits on Nov 26, 2010
  1. @asanghi
Commits on Oct 27, 2010
  1. @pixeltrix
Commits on Oct 25, 2010
  1. @pixeltrix
Commits on Aug 27, 2010
  1. @tilsammans
Commits on Aug 15, 2010
  1. @brycethornton @josevalim

    Allow for any possible TLD when using the :all option with the cookie…

    brycethornton authored josevalim committed
    … session store. This works for subdomain.mysite.local, google.co.uk, google.com.au, etc. [#5147 state:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
Commits on Jul 15, 2010
  1. @carlosantoniodasilva
Commits on Jun 11, 2010
  1. @rizwanreza @josevalim
  2. @rizwanreza @josevalim
  3. @rizwanreza @josevalim

    Took out the domain option logic to cookies.rb.

    rizwanreza authored josevalim committed
Commits on May 18, 2010
  1. @josevalim
  2. @josevalim
Commits on Apr 5, 2010
  1. @josevalim

    Rename config.cookie_secret to config.secret_token and pass it as con…

    josevalim authored
    …figuration in request.env. This is another step forward removing global configuration.
Commits on Apr 4, 2010
  1. @jeremy
Commits on Mar 31, 2010
  1. @josevalim

    Deprecate cookie_verifier_secret in favor of config.cookie_secret all…

    josevalim authored
    …owing signed cookies to work again.
Commits on Mar 18, 2010
  1. @jeremy

    Deleting and setting a cookie in the same request was broken

    Mathias Biilmann Christensen authored jeremy committed
    Made sure to remove a cookie from @deleted_cookies when set
    
    [#4211 state:committed]
    
    Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Commits on Jan 18, 2010
  1. @josh
Commits on Jan 16, 2010
  1. @josh

    Cookies middleware

    josh authored
Something went wrong with that request. Please try again.