2022/06/17分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Remove the multi-call form of assert_called_with
assert_called_with
のargs
引数にArrayを指定した場合に、それぞれ異なる引数としてmock.expect
を呼びだす、という挙動をサポートしていたのを削除しています。キーワード引数に対するmock処理がこのやり方だと正しく動作しない為。
Add configurable deprecation warning for singular associations
Active Record、railtiesの修正です。
Deprecate plural association names on singular associationsで削除した、where
などにassociation名をsingularを指定した場合の挙動を戻して、代わりにdeprecateメッセージが表示されるよう修正しています。
Add more detailed description to migration generator
railties/lib/rails/generators/rails/migration/USAGE
の修正です。
migration generatorのUSAGEにより詳細な説明を追加しています。
add repo link for scaffold templates to docs and slightly rephrase docs
rails guideのCreating and Customizing Rails Generators & Templates
の修正です。
Customizing Your Workflow by Changing Generators Templates
の項に、scaffoldで生成されるデフォルトのtemplatesファイルのソースへのリンクを追加しています。
Merge pull request #44945 from fatkodima/optimize-batches
activerecord/lib/active_record/relation/batches.rb
の修正です。
Active Recordのbatch処理で生成されるSQLを、WHERE IN (...ids...)
からrange(WHERE id >= num1 AND id < num2
)になるよう修正しています。WHERE IN
だと件数が多い場合(デフォルト1000)だと大変長いSQLになってしまい、logやモニタリングツールで正しく表示出来ない事がある為。
Specify that rails-dev-box will not work with any Apple silicon Mac
rails guideのContributing to Ruby on Rails
の修正です。