2016-08-07 13:15:11 -04:00
|
|
|
* Show cache hits and misses when rendering partials.
|
|
|
|
|
|
|
|
Partials using the `cache` helper will show whether a render hit or missed
|
|
|
|
the cache:
|
|
|
|
|
|
|
|
```
|
|
|
|
Rendered messages/_message.html.erb in 1.2 ms [cache hit]
|
|
|
|
Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
|
|
|
|
```
|
|
|
|
|
|
|
|
This removes the need for the old fragment cache logging:
|
|
|
|
|
|
|
|
```
|
|
|
|
Read fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/d0bdf2974e1ef6d31685c3b392ad0b74 (0.6ms)
|
|
|
|
Rendered messages/_message.html.erb in 1.2 ms [cache hit]
|
|
|
|
Write fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/3b4e249ac9d168c617e32e84b99218b5 (1.1ms)
|
|
|
|
Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
|
|
|
|
```
|
|
|
|
|
|
|
|
Though that full output can be reenabled with
|
|
|
|
`config.action_controller.enable_fragment_cache_logging = true`.
|
|
|
|
|
|
|
|
*Stan Lo*
|
|
|
|
|
2016-07-31 03:05:08 -04:00
|
|
|
* Don't override the `Accept` header in integration tests when called with `xhr: true`.
|
|
|
|
|
|
|
|
Fixes #25859.
|
|
|
|
|
|
|
|
*David Chen*
|
|
|
|
|
2016-07-27 19:27:17 -04:00
|
|
|
* Fix 'defaults' option for root route.
|
2016-07-21 17:10:42 -04:00
|
|
|
|
|
|
|
A regression from some refactoring for the 5.0 release, this change
|
2016-07-27 19:27:17 -04:00
|
|
|
fixes the use of 'defaults' (default parameters) in the 'root' routing method.
|
2016-07-21 17:10:42 -04:00
|
|
|
|
|
|
|
*Chris Arcand*
|
|
|
|
|
2016-07-10 12:43:12 -04:00
|
|
|
* Check `request.path_parameters` encoding at the point they're set.
|
2016-07-13 13:44:04 -04:00
|
|
|
|
|
|
|
Check for any non-UTF8 characters in path parameters at the point they're
|
|
|
|
set in `env`. Previously they were checked for when used to get a controller
|
|
|
|
class, but this meant routes that went directly to a Rack app, or skipped
|
|
|
|
controller instantiation for some other reason, had to defend against
|
|
|
|
non-UTF8 characters themselves.
|
|
|
|
|
|
|
|
*Grey Baker*
|
|
|
|
|
Don't raise ActionController::UnknownHttpMethod from ActionDispatch::Static
The `ActionDispatch::Static` middleware is used low down in the stack to serve
static assets before doing much processing. Since it's called from so low in
the stack, we don't have access to the request ID at this point, and generally
won't have any exception handling defined (by default `ShowExceptions` is added
to the stack quite a bit higher and relies on logging and request ID).
Before https://github.com/rails/rails/commit/8f27d6036a2ddc3cb7a7ad98afa2666ec163c2c3
this middleware would ignore unknown HTTP methods, and an exception about these
would be raised higher in the stack. After that commit, however, that exception
will be raised here.
If we want to keep `ActionDispatch::Static` so low in the stack (I think we do)
we should suppress the `ActionController::UnknownHttpMethod` exception here,
and instead let it be raised higher up the stack, once we've had a chance to
define exception handling behaviour.
This PR updates `ActionDispatch::Static` so it passes `Rack::Request` objects to
`ActionDispatch::FileHandler`, which won't raise an
`ActionController::UnknownHttpMethod` error. If an unknown method is
passed, it should exception higher in the stack instead, once we've had a
chance to define exception handling behaviour.`
2016-07-12 07:34:21 -04:00
|
|
|
* Don't raise ActionController::UnknownHttpMethod from ActionDispatch::Static
|
|
|
|
|
|
|
|
Pass `Rack::Request` objects to `ActionDispatch::FileHandler` to avoid it
|
|
|
|
raising `ActionController::UnknownHttpMethod`. If an unknown method is
|
|
|
|
passed, it should exception higher in the stack instead, once we've had a
|
|
|
|
chance to define exception handling behaviour.
|
|
|
|
|
|
|
|
*Grey Baker*
|
|
|
|
|
2016-07-12 11:41:09 -04:00
|
|
|
* Handle `Rack::QueryParser` errors in `ActionDispatch::ExceptionWrapper`
|
|
|
|
|
|
|
|
Updated `ActionDispatch::ExceptionWrapper` to handle the Rack 2.0 namespace
|
|
|
|
for `ParameterTypeError` and `InvalidParameterError` errors.
|
|
|
|
|
|
|
|
*Grey Baker*
|
2016-05-06 17:54:40 -04:00
|
|
|
|
2016-05-10 00:07:09 -04:00
|
|
|
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionpack/CHANGELOG.md) for previous changes.
|