なるようになるブログ

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

rails commit log流し読み(2020/04/22)

2020/04/22分のコミットです。

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

activestorage/CHANGELOG.md


Add web_image_content_types config option for ActiveStorage

Active Storageの修正です。

imageとみなすcontent typeの一覧を内部の定数で保持していたのを、config経由(config.active_storage.web_image_content_types)で指定出来るよう修正しています。

これにより、Active Storageデフォルトでは対応していないcontent type(e.g. image/webp)をvariantの処理対象にする事ができるようになっています。


Revert "Deprecate rendering templates with . in the name" (#39012)

template名に.を使用するのをdeprecateにした、Deprecate rendering templates with . in the nameをRevertしています。

<%= render "postings/rows/#{posting.kind}" %>のようにstring interpolationを使用した場合にもdeprecateメッセージが出るようになってしまった為。


Realign cache key diagram in method doc [ci skip]

actionview/lib/action_view/helpers/cache_helper.rbのdocの修正です。

cacheメソッドのdoc内にあるcache keyの説明で、値の例とその値に対する説明がずれていたのを修正しています。


Reject signed hexadecimal numbers while validating numericality

activemodel/lib/active_model/validations/numericality.rbの修正です。

  • / - 記号付きの16進の値がnumericality validationでvalidな値と見なされてしまうリグレッションが発生していたのを修正しています。