2025/09/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Prevent stack overflow in ActionText PlaintextConversion (#55025)
actiontext/lib/action_text/plain_text_conversion.rbの修正です。
Action Textの plaintext conversion処理で、変換対象のテキストが多い場合にstack overflowが発生してしまうバグがあったのを修正しています。
Return early when column are empty in WhereClause#except_predicates
activerecord/lib/active_record/relation/where_clause.rbの修正です。
WhereClause#except_predicatesで対象のcolumnが空の場合、処理を行わずearly returnするよう修正しています。処理内でarrayのオブジェクトを複数生成しており、パフォーマンス劣化の原因になる可能性がある為。
Gemfileの修正です。
Rubocopのバージョンを何故固定しているかの説明のコメントを削除しています。現在はバージョンの固定をしていない為。
Prevent autosave association with has_one defined on child class
activerecord/lib/active_record/autosave_association.rbの修正です。
STIを使用しているクラスをpolymorphic associationで定義している場合に、親association更新時にデータの変更が無くても子associationのsave処理も実行されてしまうバグがあったのを修正しています。
Avoid clearing isolated state in live tests
actionpack/lib/action_controller/metal/live.rb、
activesupport/lib/active_support/isolated_execution_state.rbの修正です。
ActionController::Live moduleがテストで処理実行後に必ずActiveSupport::IsolatedExecutionStateをclearしていたのを、clearしないよう修正しています。stateがclearされるのはテスト実行時に困るのと、テストで使用しているexecution contextでisolated stateをclearするのは処理が正しく行われなくなる可能性があるため。