なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2019/12/03)

2019/12/03分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activestorage/CHANGELOG.md


Deprecate service_url in favour of url

Active Storageの修正です。

Blob#service_urlと同様に、Variant#service_urlPreview#service_urlもdeprecateになりました。今後はurlメソッドを使う必要があります。


Fix random CI failure due to non-deterministic sorting order

activerecord/test/cases/associations/has_many_associations_test.rbの修正です。

assertionで値を比較する際に、値をidでsortしてからチェックするよう修正しています。 sortを指定しないと結果が不定になる為。


Add file analysis to the Active Storage guide

rails guideのActive Storage Overviewの修正です。

Active Storageのアナライズ処理について説明したAnalyzing Filesセクションを追加しています。


Correct default value of unknown_asset_fallback [ci skip]

rails guideのThe Asset Pipelineの修正です。

Raise an Error When an Asset is Not Foundの項にあるunknown_asset_fallbackのデフォルト値の説明が誤っていたのを修正しています。


Fix ActiveStorage::Blob → ActionText::TrixAttachment conversion

actiontext/lib/action_text/engine.rbの修正です。

リッチテキストコンテンツを編集するときに、blobがファイル / 画像の添付ファイルではなく、HTMLコンテンツの添付ファイルとして表示されてしまうバグがあったのを修正しています。