2022/11/04分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix active model errors add documentation
activemodel/lib/active_model/errors.rbのdocの修正です。
ActiveModel::Errorsクラスの各メソッドのdocにあるexampleコードが、実行するとエラーになるコードになっていたのを修正しています。
Fix pending migrations error message
activerecord/lib/active_record/migration.rbの修正です。
migrationファイルのpathを複数指定している場合に、最初にpending migrationが見つかったらすぐエラーにしていたのを、全てのディレクトリをチェックしてからエラーにする(全てのpending migrationの情報を出力する)よう修正しています。
Merge pull request #46402 from Shopify/reload-method-should-respect-query-constraints
activerecord/lib/active_record/persistence.rbの修正です。
ActiveRecord::Persistence#reloadで、Allow specifying columns to use in ActiveRecord::Base object queriesで追加されたquery_constraintsの指定を参照するよう修正しています。
Merge pull request #46406 from fatkodima/insert_all-sti
activerecord/lib/active_record/insert_all.rbの修正です。
STIを使用しているmodelでinsert_all/upsert_allを実行した場合に、自動でSTIのカラムにクラス名の情報が設定されるよう修正しています。
Merge pull request #46401 from jonathanhefner/other-framework-deprecators
Action Cable、Action Mailbox、Action Text及びActive Modelに、それぞれのライブラリ用のdeprecatorを追加しています。
Change from escapeHTML() to html_escape()
rails guideのSecuring Rails Applicationsの修正です。
HTMLのescape処理に使用するメソッド名が誤っていたのを修正しています。
activerecord/lib/active_record/migration.rbの修正です。
pending migrationがあるかどうかのチェックで、migrationの取得処理が複数回呼ばれてしまっていたのを、一度だけ呼ぶよう修正しています。