Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not mark the session as loaded if an error happened while doing it. | José Valim | 2010-06-25 | 1 | -2/+1 |
| | |||||
* | Calling exists? in the session store, without checking for stale sessions, ↵ | José Valim | 2010-06-25 | 2 | -10/+10 |
| | | | | was causing the cookie store to panic because we need to unpack the whole session to get its key. This commit fixes this issue and also caches exists calls for performance improvements. | ||||
* | Make sure that Rails doesn't resent session_id cookie over and over again if ↵ | Prem Sichanugrist | 2010-06-25 | 1 | -1/+3 |
| | | | | | | | | it's already there [#2485 state:resolved] This apply to only Active Record store and Memcached store, as they both store only the session_id, which will be unchanged, in the cookie. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Just reading flash messages should not create a session if one does not ↵ | José Valim | 2010-06-25 | 1 | -2/+9 |
| | | | | exist yet. | ||||
* | Avoid deserializing cookies too early, which causes session objects to not ↵ | José Valim | 2010-06-24 | 2 | -18/+22 |
| | | | | be available yet. Unfortunately, could not reproduce this in a test case. | ||||
* | Sessions should not be created until written to and session data should be ↵ | Michael Lovitt | 2010-06-23 | 3 | -29/+115 |
| | | | | | | | | destroyed on reset. [#4938] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Merge remote branch 'rails/master' | Xavier Noria | 2010-06-20 | 2 | -5/+5 |
|\ | | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb | ||||
| * | Use Rack::Utils.bytesize when calculating content-length of exception pages. ↵ | Tarsoly András | 2010-06-20 | 1 | -1/+1 |
| | | | | | | | | | | | | [#4727 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
| * | Clear DescendantsTracker on each request. | José Valim | 2010-06-19 | 1 | -4/+4 |
| | | |||||
* | | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -1/+1 |
|\ \ | |/ |/| | |||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 |
| | | |||||
* | | Refactored duplication into a separate method. Dropped class variable. | Rizwan Reza | 2010-06-11 | 1 | -15/+17 |
| | | |||||
* | | Adding missing docs to delete cookies with :all which were added that way. | Rizwan Reza | 2010-06-11 | 1 | -1/+2 |
| | | |||||
* | | Took out the domain option logic to cookies.rb. | Rizwan Reza | 2010-06-11 | 3 | -22/+32 |
| | | |||||
* | | Moved Domain regexp to a constant and added comments. | Rizwan Reza | 2010-06-11 | 1 | -1/+8 |
| | | |||||
* | | The previous commit didn't work with complex domains, which is now fixed. | Rizwan Reza | 2010-06-11 | 1 | -4/+4 |
| | | |||||
* | | Add support for multi-subdomain session by setting cookie host in session ↵ | Rizwan Reza | 2010-06-11 | 2 | -1/+14 |
|/ | | | | | | cookie so you can share session between www.example.com, example.com and user.example.com. [#4818 state:resolved] This reverts commit 330a89072a493aafef1e07c3558964477f85adf0. | ||||
* | Revert "Add support for multi-subdomain session by setting cookie host in ↵ | José Valim | 2010-06-10 | 2 | -14/+1 |
| | | | | | | | | session cookie so you can share session between www.example.com, example.com and user.example.com. [#4818 state:resolved]" It does not work for domains like co.uk and com.br. This reverts commit c4d6245e875bbb276c122a5a401422d341dac4df. | ||||
* | Add support for multi-subdomain session by setting cookie host in session ↵ | Guillermo Álvarez | 2010-06-10 | 2 | -1/+14 |
| | | | | | | cookie so you can share session between www.example.com, example.com and user.example.com. [#4818 state:resolved] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Ensure show exceptions middleware properly filters backtrace before logging. | José Valim | 2010-06-09 | 1 | -1/+1 |
| | |||||
* | Accept both regexps and strings for LOCALHOST. | José Valim | 2010-06-08 | 1 | -2/+2 |
| | |||||
* | Make sure that rails recognized the full notation of IPv6 loopback address, ↵ | Prem Sichanugrist | 2010-06-08 | 1 | -2/+2 |
| | | | | | | and recognize 127.0.0.0/8 in IPv4 Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Simplify middleware stack lazy compares using named const references | Jeremy Kemper | 2010-06-05 | 1 | -13/+5 |
| | |||||
* | Restore flash sweep | Jeremy Kemper | 2010-06-05 | 1 | -1/+1 |
| | |||||
* | Stop the flash middleware from forcibly loading sessions even if the user ↵ | wycats | 2010-06-04 | 2 | -6/+6 |
| | | | | doesn't use sessions at all | ||||
* | Include backtrace in failsafe log. Rescue possible exceptions in failsafe ↵ | Jeremy Kemper | 2010-06-04 | 2 | -2/+2 |
| | | | | response. | ||||
* | Add :only and :except to controllers MiddlewareStack. This allows | José Valim | 2010-05-30 | 1 | -4/+4 |
| | | | | | | | | you to do the following: class PostsController < ApplicationController use AutheMiddleware, :except => [:index, :show] end | ||||
* | Remove the laziness from the middleware stack. | José Valim | 2010-05-29 | 1 | -57/+15 |
| | |||||
* | Removing Metal from Rails 3. | wycats | 2010-05-29 | 1 | -29/+0 |
| | | | | | | | | | | | | | | | | | | | | If you have existing Metals, you have a few options: * if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go * if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself. For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack. Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed. | ||||
* | Avoid creating a Rack::Response object in the cookie middleware since it may ↵ | José Valim | 2010-05-18 | 1 | -9/+13 |
| | | | | stream the body. | ||||
* | Cut the fat and make session stores rely on request.cookie_jar and change ↵ | José Valim | 2010-05-18 | 3 | -130/+55 |
| | | | | set_session semantics to return the cookie value instead of a boolean. | ||||
* | Remove deprecated methods since 2-3-stable. | José Valim | 2010-05-18 | 1 | -34/+6 |
| | |||||
* | Simplify cookie_store by simply relying on cookies.signed. | José Valim | 2010-05-18 | 2 | -94/+45 |
| | |||||
* | added convenience methods #notice and #alert to flash.now | Martin | 2010-05-15 | 1 | -0/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | corrected error message in session/cookie_store [#4546 state:resolved] | Josh Kalderimis | 2010-05-10 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use annoted source code in Template:Error to avoid special cases in the show ↵ | José Valim | 2010-05-09 | 1 | -8/+4 |
| | | | | exceptions middleware. | ||||
* | Fix parsing xml input by ActionDispatch::ParamsParser | Lawrence Pit | 2010-05-06 | 1 | -1/+1 |
| | | | | | | [#4437 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | RouteSet does not raise ActionController::RoutingError when no routes match ↵ | Carl Lerche | 2010-04-30 | 1 | -1/+11 |
| | | | | anymore. Instead, it follows the X-Cascade convention. ShowExceptions checks for X-Cascade so that the routing error page can still be displayed. | ||||
* | Some require indifferent_access added | Santiago Pastorino | 2010-04-21 | 1 | -0/+1 |
| | | | | Signed-off-by: Xavier Noria <fxn@ubuntu.(none)> | ||||
* | require without .rb | Santiago Pastorino | 2010-04-21 | 1 | -1/+1 |
| | | | | Signed-off-by: Xavier Noria <fxn@ubuntu.(none)> | ||||
* | Missing require added | Santiago Pastorino | 2010-04-18 | 1 | -0/+1 |
| | |||||
* | Use request.body IO and rewind, if possible | Jeremy Kemper | 2010-04-07 | 1 | -3/+6 |
| | |||||
* | Remove #size call on rack input io | Joshua Peek | 2010-04-07 | 1 | -8/+4 |
| | |||||
* | Use config.filter_parameters on in-browser request dump. [#4335 state:resolved] | José Valim | 2010-04-07 | 1 | -1/+1 |
| | |||||
* | Rename config.cookie_secret to config.secret_token and pass it as ↵ | José Valim | 2010-04-05 | 2 | -19/+19 |
| | | | | configuration in request.env. This is another step forward removing global configuration. | ||||
* | Fix signed cookies by explicitly passing config to the cookie jar | Jeremy Kemper | 2010-04-04 | 1 | -23/+19 |
| | |||||
* | Deprecate cookie_verifier_secret in favor of config.cookie_secret allowing ↵ | José Valim | 2010-03-31 | 1 | -3/+3 |
| | | | | signed cookies to work again. | ||||
* | Request#content_type exists in Rack::Request, and other parts of ↵ | wycats | 2010-03-28 | 1 | -2/+4 |
| | | | | | | Rack::Request expect it to return a String. Split the Rails API so that Request#content_type returns a String, and Request#content_mime_type returns a Mime::Type object. | ||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 2 | -0/+2 |
| | |||||
* | Merge branch 'master' into docrails | wycats | 2010-03-26 | 1 | -0/+1 |
|\ |