なるようになるブログ

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

rails commit log流し読み(2022/12/14)

2022/12/14分のコミットです。

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

actionview/CHANGELOG.md


Iterate over all records in Transaction#before_commit_records

activerecord/lib/active_record/connection_adapters/abstract/transaction.rbの修正です。

nested attributeで指定したassociationを更新した場合にそのassociation経由でのtouch処理が行われないバグを修正した、Execute the before_committed! callbacks on the most recent copy of the recordの影響で、association更新後のcallbackが正しく実行されないケースがあったのを修正しています。


Fix parallel testing databases

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

rake task内のconnection取得処理専用のメソッドに切り出した、Move calls on Base connection to methods for rake tasksの影響で、parallel testing 実行時にテストのセットアップ処理でエラーになってしまう事があったのを修正しています。


Allow f.select to be called with a single hash containing options and HTML options

actionview/lib/action_view/helpers/tags/base.rbの修正です。

selectをオプションとHTMLオプションを含む単一のハッシュで呼び出せるよう修正しています。例えば、HTMLのrequired属性を指定したい場合、

<%= select :post, :author, authors, {}, required: true %>

とする必要があったのを、

<%= select :post, :author, authors, required: true %>

と定義出来るようになっています。


Add missing end to code example [ci-skip]

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

associationのdoc内のexampleコードでendが不足している箇所があったのを修正しています。


Lock sqlite3 gem to 1.4 to run bug report templates

bug report templatesの修正です。

sqlite3 gemのバージョンを1.4系に固定しています。1.5系だとCIでgemインストール時にエラーになってしまう事がある為。


Parallelization test improvements

activesupport/lib/active_support/test_case.rbのdoc、railties/test/application/test_runner_test.rbの修正ですです。

parallel testに関するdocのグラマーの修正、parallel testの改善(PARALLEL_WORKERS=1を指定した場合のテストの追加、テスト内で使用しているテストがpassするよう修正)を行っています。


Add nodoc to Mail module [ci-skip]

Action Mailboxのdocの修正です。

Action Mailboxが独自に拡張しているMail moduleがAPI docに表示されないよう修正しています。