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
メソッド内で不要なオブジェクトの生成を行わないよう修正しています。