2025/01/09分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Add a space between words in Getting Started docs
rails guideのGetting Started with Railsの修正です。
Showing Individual Productsセクションのフォーマットの修正を行なっています。
Merge pull request #51746 from 3v0k4/hidden-form
actionview/lib/action_view/helpers/tags/collection_helpers.rbの修正です。
collection_checkboxesメソッドがhidden <input>タグを生成する際に、collection_checkboxesのhtml_options[:form]オプションに指定された値を使用して生成するよう修正しています。
actionpack/lib/action_dispatch/routing/mapper.rbの修正です。
resource、resourcesに不正な:only又は:exceptオプションが指定された場合のArgumentErrorに、エラーになったresource nameを含むよう修正しています。
Update assert_notification: payload subset matching, notification return
activesupport/lib/active_support/testing/notification_assertions.rbの修正です。
assert_notificationメソッド、をpayloadの完全一致ではなく、部分一致でマッチするよう修正しています。この変更により、下記のようにpayloadのkeyが不足している(bodyが無い)場合も一致するようになっています。
assert_notification("post.submitted", title: "Cool Post") do ActiveSupport::Notifications.instrument("post.submitted", title: "Cool Post", body: "Cool Body") end
Fix MiniMagic::Image.mime_type deprecation in ASto test
activestorage/test/previewer/video_previewer_test.rbの修正です。
deprecatedになっているMiniMagic::Image.mime_typeを使用しないよう修正しています。
Fixed typo in the article "2.6.1.4 Building and Creating Associated Objects"
rails guideのActive Record Associationsの修正です。
collection methodについて説明している箇所で、メソッド名をタイポしていたのを修正しています。
Railties sprockets_assets_test use URI::RFC2396_PARSER instead of DEFAULT_PARSER
railties/test/application/sprockets_assets_test.rbの修正です。
depreatedになっているURI::DEFAULT_PARSERを使用しないよう修正しています。
Fix assert_no_file with unused block warning
railties/test/generators/api_app_generator_test.rbの修正です。
assert_no_fileに使用しないblockを渡している箇所があったのを修正しています。