2024/06/14分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Fix a performance regression in attribute methods
Active Recordの修正です。
同じattribute nameに対して複数alias_attributeでaliasを定義した場合に値がcacheされてしまいaliasが正しく定義されないバグがあったのを修正した、Use call_args in the define_proxy_method namespace.の影響で、attribute methodを定義した際のメモリ使用量が増加、及び、実行時の性能が劣化してしまっていたのを修正しています。argsを元に動的にnamespaceを生成していたのを原因だったようで、違うやり方でaliasを定義出来るよう修正しています。
Add changelog for the new internal route rails/info/notes
railties/CHANGELOG.mdの修正です。
/rails/info/notesを追加したAdd an internal route for bin/rails notesの対応について、CHANGELOGにエントリーを追加しています。
Merge pull request #52112 from y-yagi/fix_driven_by_for_devcontainer
railties/lib/rails/generators/rails/devcontainer/devcontainer_generator.rbの修正です。
Development Containers用のsystem testの設定が正しく生成されていないバグがあったのを修正しています。
Merge pull request #52040 from zzak/re-52026
railties/lib/rails/console/methods.rbの修正です。
Rails::ConsoleMethodsがdeprecatedになったことを表示するためのメッセージの出力箇所が正しく表示されてなかったのを修正しています。
Gemfile.lockの修正です。
stringio gemのバージョンを3.1.1に更新しています。ロードされていいるgemのバージョンの不一致によりエラーになってしまうのを避けるため。
Document transactions in the testing guide
rails guideのTesting Rails Applicationsの修正です。
Transactionの挙動について説明したTransactionsセクションを追加しています。
Optimize ActiveRecord::Relation#exists? with no conditions for loaded relations
activerecord/lib/active_record/relation/finder_methods.rbの修正です。
ActiveRecord::Relation#exists?メソッドで、load済みのrelationに対して、conditonを指定せずに再度実行した場合にqueryを実行せずに結果を返すよう修正しています。不要なSQLの実行を避けるため。