2025/02/05分のコミットです。
CHANGELOGへの追加はありませんでした。
Make internal query() retryable for postgresql
activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rbの修正です。
PostgreSQL adapterでSCHEMA取得用のSQLがエラーになった場合、自動でリトライするよう修正しています。
Fix NoMethodError when a non-string CSRF token is passed through header
actionpack/lib/action_controller/metal/request_forgery_protection.rbの修正です。
文字列でないCSRF tokenがheaderに指定された場合に、tokenのverifyがNoMethodErrorでエラーになってしまうバグがあったのを修正しています。
Reorder conditions in HashWithIndifferentAccess#initialize
activesupport/lib/active_support/hash_with_indifferent_access.rbの修正です。
HashWithIndifferentAccess#initialize内のconstructor引数のチェック処理について、constructorにto_hashが定義されているかを最初にチェックしていたのを、nilかどうかを最初にチェックするよう修正しています。nilかどうかのチェックの方がはやい、かつ、nilになっている事が多いと思われる為。
Merge pull request #52045 from zzak/railties_clean_irb_homedir_tests
railties/test/application/console_test.rbの修正です。
rails consoleのテストを実行する際に、userのhomeディレクトリにあるIRB configがロードされないよう、テスト用に独自のhomeディレクトリを使用するよう修正しています。
Avoid unecessary hash allocation in AttributeMutationTracker#changes
activemodel/lib/active_model/attribute_mutation_tracker.rbの修正です。
AttributeMutationTracker#changesメソッド内で不要なオブジェクトの生成を行わないよう修正しています。