2023/08/19分のコミットです。
CHANGELOGへの追加はありませんでした。
Add method for accessing only query constraints
activerecord/lib/active_record/persistence.rb
、
activerecord/lib/active_record/reflection.rb
の修正です。
modelにqurey constraintsの指定があるかどうかをチェックする為のメソッドを追加しています。
activerecord/lib/active_record/persistence.rb
の修正です。
uninitialized ivarに関するwarningが出ていたのを対応しています。
Use class method module instead of DSL
actionpack/lib/action_dispatch/testing/assertions/routing.rb
の修正です。
classメソッドを定義するのにDSLではなくclass method moduleを使用するよう修正しています。定義したメソッドのdocがmoduleのメソッドとして正しく定義されるようにする為。
Initialize the variable in the init_internals method
activerecord/lib/active_record/persistence.rb
の修正です。
has_query_constraints?
メソッドで使用しているインスタンス変数の初期化処理を、メソッド内で行っていたのをinit_internals
メソッド内で行うよう修正しています。使用する際に毎回初期化されているかチェックするのを避ける為。
Fix documentation of with_routing in the class level
actionpack/lib/action_dispatch/testing/assertions/routing.rb
のdocの修正です。
with_routing
メソッドのdocから不要なassertionを削除しています。
Merge pull request #48959 from skipkayhil/hm-clean-filters-requires
使用していないrequireを削除しています。
Merge pull request #48956 from skipkayhil/hm-rack-lint-show-exceptions-failsafe
actionpack/lib/action_dispatch/middleware/show_exceptions.rb
、
actionpack/test/dispatch/show_exceptions_test.rb
の修正です。
ShowExceptions
middlewareのfailsafe機能についてのテストを追加しています。