2025/02/04分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #54425 from zzak/ci-verbose-tests
CIでテストを実行する際、--profile
オプションを指定してテストのprofileをとるよう修正しています。
Workaround for cannot load such file -- net/smtp (LoadError)
Rubyのheadでテストを実行するとnet-smtp
gemがロード出来ずエラーになる、という問題があった為、GitHubの最新のコードを使用するよう修正しています。
Merge pull request #54428 from dylhack/speedup-dockerfile
railties/lib/rails/generators/rails/app/templates/Dockerfile.tt
の修正です。
Dockerfile内でのownerの変更処理をchown
でやっていたのを、COPY
に--chown
を指定して行うよう修正しています。再帰的なchownは遅い、という問題がある為。
参考:Recursive chown is really slow
Defer creating the Active Model attribute-method module
activemodel/lib/active_model/attribute_methods.rb
の修正です。
Active Modelのattribute-methodの為のmoduleを、実際に必要になるまで作成しないよう修正しています。元々そういう挙動になっていたのですが、Migrate ActiveRecord::Normalization to Active Modelの対応の影響で挙動が変わってしまった為、元の挙動になるよう修正しています。
Merge pull request #54409 from saiqulhaq/document-case-equality-in-assertions
activesupport/lib/active_support/testing/assertions.rb
のdocの修正です。
assert_changes
、assert_no_changes
のdocに、from
とto
に指定した値の型が違う場合のexampleなどを追加しています。
Merge pull request #54372 from Edouard-chin/ec-linkto-doc
rails guideのGetting Started with Rails
の修正です。
exampleコード内のlink_to
でリンクを生成する処理で、Active Recordのインスタンスをpathに指定していたのを、xx_path
helperを使用するよう修正しています。インスタンスをpathに直接指定しても問題無いのですが、他のexampleではxx_path
helperを使用している、かつ、xx_path
helperを使用した方が意図がわかりやすいだろう、という事で修正されています。