2019/08/23分のコミットです。
CHANGELOGへの追加はありませんでした。
Revert "Merge pull request #37001 from abhaynikam/36996-remove-unused-null-content-type-header"
NullContentTypeHeader
を削除した、Removed unused NullContentTypeHeader after changes in #36996をRevertしています。
NullContentTypeHeader
はSupport extra stuff in the Content-Type header via Mime registrationの対応により不要になったのですが、このPRでNullContentTypeHeader
に関する修正は不要な筈の為、該当部分の処理を元に戻す為に、まずNullContentTypeHeader
の定義を戻しています。
Partly revert unnecessary change in #36996
actionpack/lib/action_dispatch/http/response.rb
の修正です。
Support extra stuff in the Content-Type header via Mime registrationで変更されたparse_content_type
の引数がnilだった処理を元の処理に戻しています。
が、どうもテストが壊れてしまったようで、後ほどRevertされています
Encode ActionDispatch::TestRequest::DEFAULT_ENV headers as ASCII-8BIT
actionpack/lib/action_dispatch/testing/test_request.rb
の修正です。
ActionDispatch::TestRequest::DEFAULT_ENV
の値をASCII-8BITにエンコードするよう修正しています。実際にサーバから送信されるヘッダーはASCII-8BITになっており、より実際に近い値でテスト出来るようにする為。
activestorage/lib/active_storage/attached/model.rb
の修正です。
has_many_attached
メソッドで生成する=(attachables
)メソッドから、attachables
がnilかどうかのチェック処理を削除しています。合わせてチェックしているArray(attachables).any?
でチェック出来る内容の為。
Revert "Partly revert unnecessary change in #36996"
parse_content_type
の引数がnilだった処理を修正した、Partly revert unnecessary change in #36996をRevertしています。
Optimize Action Text's plain text conversion
actiontext/lib/action_text/plain_text_conversion.rb
の修正です。
深く入れ子になったtagをPlainTextConversion
に渡した場合にSystemStackError
が発生してしまうバグがあったのを修正しています。
Merge pull request #37017 from kamipo/fix_content_type
actionpack/lib/action_dispatch/http/response.rb
の修正です。
Content-Typeにcharset
を含んでいるかによって、extra
partが mime typeに含まれるかどうか変わってしまっていたのを、charset
に関わらずextra
partは必ずmime typeに含むよう修正しています。
Small docs fix inside ActiveStorage
[ci skip]
Active Storageのdocの修正です。
各docのexampleコード内のActiveRecord::Base
をApplicationRecord
に修正しています。