2025/03/07分のコミットです。
CHANGELOGへの追加はありませんでした。
Don't rebuild the middleware stack when using with_routing
:
actionpack/lib/action_dispatch/testing/assertions/routing.rb
の修正です。
with_routing
メソッドを使用している場合、middleware stackの再構築を行わないよう修正しています。middleware stackの構築はRails applicationの初期化処理に影響を受けるのですが、integration testの中でwith_routing
メソッドが使われた際にもその処理が行われてしまうと、正しい値が設定されない可能性がある為。
[ci skip] Fix form_with model binding example in guides
rails guideのAction View Form Helpers
の修正です。
Binding a Form to an Object
セクションで、新規object作成用のformについて説明している箇所で、既に作成済みのobjectをexampleコードに使用していた(formの挙動がcreateではなくupdateになっていた)のを修正しています。
Fixes perf improvement breaking ActionController::TestCase
actionpack/lib/action_dispatch/http/request.rb
の修正です。
ActionController::TestCase
でActionDispatch::Request#route_uri_pattern
メソッドを実行した場合に、undefined methodでエラーになってしまうバグがあったのを修正しています。
Fix typo in Active Job Basics guide
rails guideのActive Job Basics
の修正です。
Set Up
セクションで説明しているenv名をタイポしていたのを修正しています。
Disconnect if configure_connection
failed
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
configure_connection
でエラーになった場合、connectionを切断し、再試行時は接続処理からやり直すよう修正しています。configure_connection
がエラーになった場合、adapterの初期化が中途半端になってしまっている可能性があり、その状態のまま再度設定処理を行ってもエラーになってしまう可能性がある為。