Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove ActionDispatch::Head middleware in favor of Rack::Head | Santiago Pastorino | 2012-07-23 | 1 | -18/+0 |
| | | | | Closes #7110 there's more work to do on rack-cache issue 69 | ||||
* | Rename RouteInspector to RoutesInspector | Carlos Antonio da Silva | 2012-07-08 | 1 | -2/+1 |
| | | | | Follow the consistency defined in dbc43bc. | ||||
* | move route_inspector to actionpack | @schneems and @mattt | 2012-07-07 | 1 | -5/+7 |
| | | | | this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties. | ||||
* | show routes while debugging RoutingError | schneems | 2012-07-07 | 2 | -3/+20 |
| | | | | If someone receives a routing error, they likely need to view the routes. Rather than making them visit '/rails/info/routes' or run `rake routes` we can give them that information on the page. | ||||
* | Use status, content_type, body method signature for render too | Santiago Pastorino | 2012-06-14 | 1 | -4/+3 |
| | |||||
* | Refactor public exceptions to reuse render format method | Carlos Antonio da Silva | 2012-06-14 | 1 | -9/+6 |
| | |||||
* | content_type is already a Mime::Type object | Santiago Pastorino | 2012-06-12 | 1 | -1/+1 |
| | |||||
* | This consider_all_requests_local doesn't make sense | Santiago Pastorino | 2012-06-12 | 1 | -3/+2 |
| | | | | | This middleware is only for Public Exceptions. This follows bd8c0b8a | ||||
* | Return proper format on exceptions | Santiago Pastorino | 2012-06-11 | 1 | -14/+36 |
| | |||||
* | Raise ActionController::BadRequest for malformed parameter hashes. | Andrew White | 2012-05-20 | 1 | -1/+2 |
| | | | | | | | | | | | | | | Currently Rack raises a TypeError when it encounters a malformed or ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this through to the application this commit captures the exception and re-raises it using a new ActionController::BadRequest exception. The new ActionController::BadRequest exception returns a 400 error instead of the 500 error that would've been returned by the original TypeError. This allows exception notification libraries to ignore these errors if so desired. Closes #3051 | ||||
* | Add the #unshift method to the middleware stack | Rich Healey | 2012-05-18 | 1 | -0/+5 |
| | | | | | | The docs suggest that the middleware stack is an Array, so I've added the unshift method to it. Originally I added some more Array methods, but it was agreed that they lacked usecases. | ||||
* | Removing ==Examples and last blank lines of docs from actionpack | Francesco Rodriguez | 2012-05-15 | 2 | -2/+2 |
| | |||||
* | Move require to where it's needed | Santiago Pastorino | 2012-05-11 | 1 | -1/+2 |
| | |||||
* | doc edits [ci skip] | Vijay Dev | 2012-05-06 | 1 | -3/+2 |
| | |||||
* | Merge pull request #5924 from cjolly/signed-cookies-docs | Vijay Dev | 2012-05-06 | 1 | -3/+5 |
|\ | | | | | Improve signed cookies documentation | ||||
| * | Improve signed cookies documentation | Chad Jolly | 2012-04-21 | 1 | -3/+5 |
| | | |||||
* | | Raise a rescuable exception when Rails doesn't know what to do with the ↵ | Steven Soroka | 2012-05-06 | 1 | -0/+1 |
| | | | | | | | | format, rather than responding with a head :not_acceptable (406) | ||||
* | | Try to convert object passed to debug_hash to hash | Piotr Sarnacki | 2012-05-05 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | SessionStore was recently changed to delegate to hash object instead of inherit from it. Since we don't want to extend SessionStore with every method implemented in Hash, it's better to just convert any object passed to debug_hash (which is also better as we don't require to pass Hash instance there, it can be any object that can be converted to Hash). | ||||
* | | make sure the superclass matches so load order does not matter | Aaron Patterson | 2012-05-04 | 2 | -2/+2 |
| | | |||||
* | | session creation methods to a module | Aaron Patterson | 2012-05-04 | 3 | -24/+11 |
| | | |||||
* | | create a request session in the cookie stores | Aaron Patterson | 2012-05-04 | 1 | -0/+8 |
| | | |||||
* | | create a request::session object in the memecache store middleware | Aaron Patterson | 2012-05-04 | 1 | -0/+10 |
| | | |||||
* | | Merge branch 'master' into session | Aaron Patterson | 2012-05-04 | 1 | -1/+3 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (55 commits) extract deprecated dynamic methods Add some docs and changelog entry Allow overriding exception handling in threaded consumer Allow configuring a different queue consumer actually don't need to expand the aggregates at all #to_sym is unnecessary de-globalise method extract code from AR::Base clean up implementation of dynamic methods. use method compilation etc. Fix ActiveModel README example mention database mapping in getting started guide Remove vestiges of the http_only! config from configuring guide Remove content-length as well Make ActionController#head pass rack-link RouteSet: optimize routes generation when globbing is used Allows assert_redirected_to to accept a regular expression use extract_options! No need to force conversion to Symbol since case ensures it's already one. No need to work around 1.8 warnings anymore. Update command line guide ... | ||||
| * | | Add backtrace to development routing error page | schneems | 2012-05-02 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | If a user gets a routing error due to a view helper such as using user_path without an :id they must go to their logs to see the backtrace. By adding in the trace template, a user can see which line the error occurred on without leaving the browser. When a routing error occurs outside of the view the application trace will be blank and will not confuse developers. | ||||
* | | | bread AD::Request::Session to it's own file, consolidate HASH OF DOOM lookups | Aaron Patterson | 2012-05-03 | 2 | -151/+2 |
| | | | |||||
* | | | extract options finding to a method | Aaron Patterson | 2012-05-02 | 1 | -4/+7 |
| | | | |||||
* | | | testing session store behavior | Aaron Patterson | 2012-05-02 | 1 | -7/+19 |
| | | | |||||
* | | | initialize instance variables | Aaron Patterson | 2012-05-02 | 1 | -6/+5 |
| | | | |||||
* | | | converted session hash to delegation | Aaron Patterson | 2012-05-02 | 1 | -21/+19 |
| | | | |||||
* | | | session hash imported | Aaron Patterson | 2012-05-02 | 1 | -15/+111 |
| | | | |||||
* | | | oops, forgot some semicolons | Aaron Patterson | 2012-05-02 | 1 | -3/+3 |
| | | | |||||
* | | | remove unused ivar | Aaron Patterson | 2012-05-02 | 1 | -4/+3 |
| | | | |||||
* | | | use hash fetches to populate the :id value | Aaron Patterson | 2012-05-02 | 1 | -12/+7 |
| | | | |||||
* | | | imported options, switched to object composition | Aaron Patterson | 2012-05-02 | 1 | -13/+56 |
|/ / | |||||
* | | * move exception message to exception constructor | Aaron Patterson | 2012-05-02 | 1 | -5/+11 |
| | | | | | | | | | | * save original exception * keep original backtrace | ||||
* | | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-05-01 | 2 | -4/+4 |
|\ \ | |||||
| * | | Code-format references to config settings | Mark Rushakoff | 2012-04-27 | 2 | -2/+2 |
| | | | |||||
| * | | More using <tt>x</tt> instead of +x+ when the latter renders improperly. | Mark Rushakoff | 2012-04-27 | 1 | -2/+2 |
| | | | |||||
* | | | Merge pull request #6084 from brainopia/support_for_magic_domain_on_all_stores | José Valim | 2012-04-30 | 1 | -0/+7 |
|\ \ \ | | | | | | | | | Support cookie jar options for all cookie stores | ||||
| * | | | Support cookie jar options for all cookie stores | brainopia | 2012-04-30 | 1 | -0/+7 |
| |/ / | |||||
* | | | Merge pull request #6082 from brainopia/smarter_cookie_jar | José Valim | 2012-04-30 | 1 | -7/+10 |
|\ \ \ | | | | | | | | | Stream cookies only if needed | ||||
| * | | | Dont stream back cookie value if it was set to the same value | brainopia | 2012-04-30 | 1 | -4/+6 |
| | | | | |||||
| * | | | Dont set cookie header for deletion of unexisting data | brainopia | 2012-04-30 | 1 | -1/+2 |
| | | | | |||||
| * | | | Simplify matching with array of possible domains | brainopia | 2012-04-30 | 1 | -1/+1 |
| | | | | |||||
| * | | | Use more appropriate one-liner for class declaration | brainopia | 2012-04-30 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge pull request #6083 from brainopia/remove_unused_closed_ivars | José Valim | 2012-04-30 | 2 | -2/+0 |
|\ \ \ \ | |/ / / |/| | | | Remove a couple of unused ivars left from previous refactoring | ||||
| * | | | Remove unused ivars left from close checks | brainopia | 2012-04-30 | 2 | -2/+0 |
| |/ / | | | | | | | | | | These ivars were missed in d142572567 when close checks were removed | ||||
* | | | Merge pull request #6034 from ↵ | Piotr Sarnacki | 2012-04-30 | 1 | -6/+3 |
|\ \ \ | | | | | | | | | | | | | | | | | willbryant/flash_must_not_load_session_on_every_request_master Fix the Flash middleware loading the session on every request | ||||
| * | | | fix the Flash middleware loading the session on every request (very ↵ | Will Bryant | 2012-04-28 | 1 | -6/+3 |
| |/ / | | | | | | | | | | dangerous especially with Rack::Cache), it should only be loaded when the flash method is called | ||||
* / / | Remove unused assignments | Mark Rushakoff | 2012-04-29 | 1 | -1/+0 |
|/ / |