- 03 4月, 2013 1 次提交
-
-
由 Trevor Turk 提交于
-
- 29 3月, 2013 1 次提交
-
-
由 Trevor Turk 提交于
Allow transparent upgrading of legacy signed cookies to encrypted cookies; Automatically configure cookie-based sessions to use the best cookie jar given the app's config
-
- 25 3月, 2013 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Trevor Turk 提交于
Introduce UpgradeLegacySignedCookieJar to transparently upgrade existing signed cookies generated by Rails 3 to avoid invalidating them when upgrading to Rails 4
-
- 19 2月, 2013 1 次提交
-
-
由 Santiago Pastorino 提交于
Closes #9302
-
- 28 1月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 26 1月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
All ActionPack and Railties tests are passing. Closes #8891. [Carlos Antonio da Silva + Santiago Pastorino]
-
- 04 11月, 2012 3 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
How to use it? cookies.encrypted[:discount] = 45 => Set-Cookie: discount=ZS9ZZ1R4cG1pcUJ1bm80anhQang3dz09LS1mbDZDSU5scGdOT3ltQ2dTdlhSdWpRPT0%3D--ab54663c9f4e3bc340c790d6d2b71e92f5b60315; path=/ cookies.encrypted[:discount] => 45
-
由 Santiago Pastorino 提交于
-
- 10 8月, 2012 1 次提交
-
-
由 brainopia 提交于
-
- 30 4月, 2012 2 次提交
- 23 1月, 2012 1 次提交
-
-
由 Paul Annesley 提交于
Necessary in controller tests to determine if the CookieJar will delete the given cookie.
-
- 16 12月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 24 11月, 2011 1 次提交
-
-
由 lest 提交于
-
- 02 9月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 30 6月, 2011 1 次提交
-
-
由 José Valim 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 Andrew White 提交于
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.
-
- 04 6月, 2011 1 次提交
-
-
由 Andrew White 提交于
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.
-
- 19 5月, 2011 1 次提交
-
-
由 steve 提交于
-
- 07 4月, 2011 7 次提交
-
-
由 Santiago Pastorino 提交于
This reverts commit 29592a7f.
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
to modify the cookies when it was already streamed back to the client or converted to HTTP headers
-
由 Santiago Pastorino 提交于
raise if someone tries to modify the cookies when it was already streamed back to the client or converted to HTTP headers
-
- 06 3月, 2011 1 次提交
-
-
由 Andrew White 提交于
- cookies can be set using string or symbol keys - cookies are preserved across calls to get, post, etc. - cookie names and values are escaped - cookies can be cleared using @request.cookies.clear [#6272 state:resolved]
-
- 21 1月, 2011 2 次提交
-
-
由 brainopia 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 brainopia 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 16 12月, 2010 1 次提交
-
-
由 brainopia 提交于
Dont set explicit domain for cookies if host is not a domain name [#6002 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 15 12月, 2010 1 次提交
-
-
由 brainopia 提交于
Dont set explicit domain for cookies if host is not a domain name [#6002 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 08 11月, 2010 1 次提交
-
-
由 David Trasbo 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 25 10月, 2010 1 次提交
-
-
由 Andrew White 提交于
-
- 27 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 14 9月, 2010 1 次提交
-
-
由 W. Andrew Loe III 提交于
-
- 16 8月, 2010 1 次提交
-
-
由 Bryce Thornton 提交于
Allow for any possible TLD when using the :all option with the cookie session store. This works for subdomain.mysite.local, google.co.uk, google.com.au, etc. [#5147 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 11 6月, 2010 2 次提交
-
-
由 Rizwan Reza 提交于
-
由 Rizwan Reza 提交于
-