なるようになるブログ

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

rails commit log流し読み(2023/05/21)

2023/05/21分のコミットです。

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

activesupport/CHANGELOG.md


Deprecate SafeBuffer#clone_empty

activesupport/lib/active_support/core_ext/string/output_safety.rbの修正です。

SafeBuffer#clone_emptyをdeprecatedにしています。Rails 4.2以降Rails内部では使っていない、かつ、普通のRailsアプリケーションで使う事が無さそう、という事でdeprecatedにしています。


Merge pull request #48099 from shivamsinghchahar/aj-document-queue-with-priority-block

activejob/lib/active_job/queue_priority.rbの修正です。

queue_with_priorityメソッドの引数にblockを指定した場合の挙動の説明、及び、exampleコードを追加しています。


Add 'type' attribute to 'source' element

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

picture_tagメソッドで生成するsource elementにtype attributeを指定するよう修正しています。 WHATWGで定義された仕様によると、srcset attributeが指定されているsource elementには、typeが指定するよう定義されている為。


Register Mime type for image/webp automatically.

actionpack/lib/action_dispatch/http/mime_types.rbの修正です。

デフォルトで定義するmime typeの一覧にimage/webpを追加しています。


Merge pull request #48260 from skipkayhil/hm-doc-collection-proxy-links

activerecord/lib/active_record/associations/collection_proxy.rbのdocの修正です。

CollectionProxyのdocのフォーマットとAPI docへのリンク先を修正しています。