2022/08/25分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Use #to_hash to serialize AS::HWIA & Hash for stored attributes
activerecord/lib/active_record/store.rb
の修正です。
stored attributesでnestしたActiveSupport::HashWithIndifferentAccess
のオブジェクトが正しくserializeされないバグがあったのを修正しています。
Merge pull request #45882 from rails/short-inspect-on-test-case
activesupport/lib/active_support/test_case.rb
の修正です。
ActiveSupport::TestCase
にinspect
メソッドを定義(実装はinstance_method
メソッドの出力)しています。元々はテスト対象のオブジェクトのinspect
結果がそのまま出力されていたのですが、controllerのテストが失敗した場合にActionController::Base
のinspect
がそのまま出力される、かつ、左記クラスではインスタンス変数が大量にあり、それがそのまま表示されると大量のテキストが表示されてしまう(しかも特に失敗したテストの解決になるような情報ではない)、というような問題があった為、不要な情報が出力されるのを抑止する為にメソッドを定義するよう修正しています。
Extend dangerous attribute methods with dangerous methods from Object
activerecord/lib/active_record/attribute_methods.rb
の修正です。
attribute methodとして定義出来ない名前の一覧にObject
に定義されているメソッドを追加しています。
Fix RedisCacheStore#delete_entry interface
activesupport/lib/active_support/cache/redis_cache_store.rb
の修正です。
RedisCacheStore#delete_entry
メソッドのinterfaceをCache#delete_entry
と同じになるよう修正しています。
Extend routes --grep
to also filter routes by matching against path
railties、Action Packの修正です。
routes --grep
でpathによるfilterを出来るよう修正しています。
$ bin/rails routes --grep /cats/1 Prefix Verb URI Pattern Controller#Action cat GET /cats/:id(.:format) cats#show PATCH /cats/:id(.:format) cats#update PUT /cats/:id(.:format) cats#update DELETE /cats/:id(.:format) cats#destroy