mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
dd9d869746
Fix undefined method `ref' for nil:NilClass for bad accept headers
26 lines
891 B
Markdown
26 lines
891 B
Markdown
* Fix `Mime::Type.parse` when bad accepts header is looked up. Previously it
|
|
was setting `request.formats` with an array containing a `nil` value, which
|
|
raised an error when setting the controller formats.
|
|
|
|
Fixes #10965
|
|
|
|
*Becker*
|
|
|
|
* Merge `:action` from routing scope and assign endpoint if both `:controller`
|
|
and `:action` are present. The endpoint assignment only occurs if there is
|
|
no `:to` present in the options hash so should only affect routes using the
|
|
shorthand syntax (i.e. endpoint is inferred from the path).
|
|
|
|
Fixes #9856
|
|
|
|
*Yves Senn*, *Andrew White*
|
|
|
|
* ActionView extracted from ActionPack
|
|
|
|
*Piotr Sarnacki*, *Łukasz Strzałkowski*
|
|
|
|
* Fix removing trailing slash for mounted apps #3215
|
|
|
|
*Piotr Sarnacki*
|
|
|
|
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/actionpack/CHANGELOG.md) for previous changes.
|