2024/04/04分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #51449 from p8/guides/remove-proxy-association
rails guideのActive Record Associations
の修正です。
private APIであるproxy_association
accessorについての説明を削除しています。
Allow Actionable Errors encountered when running tests to be retried.
railtiesの修正です。
pendingになっているmigrationがある、などのActionable Errorがテスト実行時に発生した場合に、そのエラーの解消をターミナルから指定&テストの再実行を行えるよう対応しています。
Fix documentation for enqueue_after_transaction_commit
railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_2.rb.tt
のdoc、及び、rails guideのConfiguring Rails Applications
の修正です。
enqueue_after_transaction_commit
についてのdocのグラマーやフォーマットの修正を行っています。
Add missing ostruct
require to http_token_authentication_test.rb
actionpack/test/controller/http_token_authentication_test.rb
の修正です。
不足していたostruct
のrequireを追加しています。
Arel: make Or
nodes "Nary" like And
Active Recordの修正です。
大量のOr
条件が指定された場合に、Active Record preloaderでのload処理でSystemStackError
が発生してしまうバグがあったのを修正しています。Arelのtreeのdepthが深くなりすぎてしまっていたのが問題だった為、Arelのtreeのdepthの管理を変えるよう修正しています。
Stop generating files with git_source(:github)
rails new
で生成するGemfileや、bug report templatesからgit_source(:github)
の指定を削除しています。Bundlder本体で同等のメソッドを保持しており、Rails側で独自に定義する理由が今は無い為。
Merge pull request #51480 from albus522/dg/improve-vips-analyzer
activestorage/lib/active_storage/analyzer/image_analyzer/vips.rb
の修正です。
ruby-vipsでimageのanalyzingを行う際に、Vips::Image#avg
メソッドを使用して対象のファイルが画像かどうかをチェックしていたのをしないよう修正しています。Vips::Image#avg
はファイルをまるごと読み込むのでメモリを大量に使用する、かつ、画像では無い場合は違う処理でエラーになるので、ここでのチェックが無くても問題無い為。