diff options
author | Sharang Dashputre <sharang.d@gmail.com> | 2019-06-02 03:18:27 +0530 |
---|---|---|
committer | Sharang Dashputre <sharang.d@gmail.com> | 2019-06-02 03:18:27 +0530 |
commit | 913b2da2d833cfefcd6e4a111ab93446f94baab0 (patch) | |
tree | 4efe0d20091df4316b2f48fb6df8fc1ae817d5cb /guides | |
parent | 2a015f6c0be0593a624b0c800e5335319ac4c660 (diff) | |
download | rails-913b2da2d833cfefcd6e4a111ab93446f94baab0.tar.gz rails-913b2da2d833cfefcd6e4a111ab93446f94baab0.tar.bz2 rails-913b2da2d833cfefcd6e4a111ab93446f94baab0.zip |
Reword the ActionDispatch::Response#content_type change [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 1110592d5e..54f014293d 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -134,12 +134,12 @@ Action Cable JavaScript API: + ActionCable.logger.enabled = false ``` -### `ActionDispatch::Response#content_type` now returned Content-Type header as it is. +### `ActionDispatch::Response#content_type` now returns the Content-Type header without modification -Previously, `ActionDispatch::Response#content_type` returned value does NOT contain charset part. -This behavior changed to returned Content-Type header containing charset part as it is. +Previously, the return value of `ActionDispatch::Response#content_type` did NOT contain the charset part. +This behavior has changed to include the previously omitted charset part as well. -If you want just MIME type, please use `ActionDispatch::Response#media_type` instead. +If you want just the MIME type, please use `ActionDispatch::Response#media_type` instead. Before: |