2021/12/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Don't use schema cache when checking schema migrations
activerecord/lib/active_record/schema_migration.rbの修正です。
schema migrationのチェックの際に、schema cacheを使用しないよう修正しています。
schema migrationのチェック処理はアプリケーションのboot前に行われる、かつ、schema cacheのロード処理はboot後に行われる為、schema cacheを使用すると正しくテーブルのチェックが行えない為。
Fix scaffold index.html.erb variable name
railtiesの修正です。
Move "show" link from partial to index template.とFix scaffold controller generator with namespaceがコンフリした影響で、テンプレート内で参照する値が誤った内容になってしまっていたのを修正しています。
Merge pull request #43871 from rails/rm-fix-hosts-with-port
actionpack/lib/action_dispatch/middleware/host_authorization.rb、
railties/lib/rails/application/configuration.rbの修正です。
先日行われた脆弱性の対応の影響で、development envでlocalhost以外の任意のホスト名 + ポートを指定して起動したサーバにアクセスした場合に、host authorizationにリクエストがブロックされてしまうリグレッションが発生していたのを修正しています。
Merge pull request #43873 from yahonda/fix43872
activerecord/test/cases/associations_test.rbの修正です。
preloaderのテストでロードするfixtureが不足していたのを修正しています。
Make sure test pass with minitest 5.15
Gemfileの修正です。
minitest 5.15.0でテストを実行するよう修正しています。
Allow IPs with port in the HostAuthorization middleware
actionpack/lib/action_dispatch/middleware/host_authorization.rbの修正です。
先日行われた脆弱性の対応の影響で、IPアドレス + ポートを指定して起動したサーバにアクセスした場合にhost authorizationにリクエストがブロックされてしまうリグレッションが発生していたのを修正しています。
Dup arrays that get "converted"
actionpack/lib/action_controller/metal/strong_parameters.rbの修正です。
StrongParameter内で保持しているconverted arraysにparameterを追加する際に、dupした値を追加するよう修正しています。ユーザ側でparameterを変更した場合に、StrongParameterで保持しているconverted arraysに影響が出ないようにする為。
Fix exception when loading stylesheets in actionmailer templates
actionview/lib/action_view/helpers/asset_tag_helper.rbの修正です。
Action Mailerのtemplateでstylesheetsのロード時にNoMethodErrorが発生してしまうリグレッションが発生していたのを修正しています。
Generate [id] for FormBuilder#button called with method name
actionview/lib/action_view/helpers/form_helper.rbの修正です。
FormBuilder#buttonの引数にメソッド名が指定されている場合に、生成するbutton tagにid attributeを付与するよう修正しています。
Typo in the Security Policy URL
.github/security.mdの修正です。
Security Policy URLへのリンクから不要なtrailing slashを削除しています。
Update Rails startup screenshot at Rails Guide
rails guideのGetting Started with Railsの修正です。
welcomeページに表示される内容のスクリーンショットを、Update the boot screenで変更された内容に更新しています。
Update request.path_parameters docs: returned hash keys are symbols
actionpack/lib/action_dispatch/http/parameters.rbのdocの修正です。
Parameters#path_parametersメソッドのdocに、戻り値のHashのkeyはStringである旨説明が記載されていたのですが、現在のkeyはSymbolの為、その旨説明を修正しています。