2026/05/12分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/CHANGELOG.md
actionpack/CHANGELOG.md
actionview/CHANGELOG.md
Document Active Job continuation instrumentation events
rails guideのActive Support Instrumentationの出力です。
Active Job continuationで使用しているeventについて追加しています。
Fix unexpected behavior for dependent: :purge in has_one_attached and
activestorage/app/models/active_storage/attachment.rbの修正です。
has_one_attached、has_many_attachedにdependent: :purgeを指定していた場合に、record削除時に指定通りにpurgeされないバグがあったのを修正しています。
Pass render options and block to calls to #render_in
Action Pack、Action Viewの修正です。
renderメソッドのoptionとblockをrender_inメソッドに渡せるよう修正しています。
class Greeting def render_in(view_context, **) if block_given? view_context.render(html: yield) else view_context.render(inline: <<~ERB.strip, **) Hello, <%= local_assigns[:name] || "World" %> ERB end end end ApplicationController.render(Greeting.new) # => "Hello, World" ApplicationController.render(Greeting.new) { "Hello, Block" } # => "Hello, Block"
Merge pull request #57346 from rails/rm-arel-test
テストの修正です。
Arelのテストがspec styleに記載されていたのを、test unit styleに変換しています。Railsのテストを実行するのにbyroot/megatestを使用するよう変更する予定があのですが、megatestではspec styleはサポートしていない為。
参考:Use megatest for Rails own testing
Properly reset fixtures cache after non-transactional tests
activerecord/lib/active_record/test_fixtures.rbの修正です。
non-transactional testsの後で、fixtures cacheが正しくリセットされないバグがあったのを修正しています。