なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2021/09/10)

2021/09/10分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Avoid scoping update transaction when calling update! on a relation

activerecord/lib/active_record/relation.rbの修正です。

ActiveRecord::Relation#update!からのcallback実行処理がscopingの影響を受けるようになってしまっていたのを、影響を受けないよう修正しています。ActiveRecord::Relation#updateと挙動を合わせる為。


Add a template per case on asset debugging tests

railties/test/application/asset_debugging_test.rbの修正です。

asset debuggingのテストでテスト毎に異なるtemplateを使用するよう修正しています。更新検知のタイミングによりテストがfailしてしまうのを避ける為。