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の取得処理が複数回呼ばれてしまっていたのを、一度だけ呼ぶよう修正しています。