なるようになるブログ

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

rails commit log流し読み(2022/02/17)

2022/02/17分のコミットです。

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

activerecord/CHANGELOG.md


Fix config.active_record.destroy_association_async_job configuration

activejob/lib/active_job/railtie.rbの修正です。

associationのdependentのオプションの値に関わらず、record削除時に必ずActiveRecord::DestroyAssociationAsyncJobが使用されてしまうバグがあったのを修正しています。


Document some methods in Application::Configuration [ci-skip]

railties/lib/rails/application/configuration.rbのdocの修正です。

Application::Configuration配下の各メソッドにdocを追加しています。


Merge pull request #44441 from jonathanhefner/guide-encryption-config-table-to-sections

rails guideのActive Record Encryptionの修正です。

configオプションについての説明を1つのリストでまとめて行っていたのを、項目毎にセクションをわけるよう修正しています。


Implement inspect for Notifications::Fanout

activesupport/lib/active_support/notifications/fanout.rbの修正です。

Notifications::Fanoutinspectメソッドを実装しています。subscriberを保持している都合上、デフォルトのinspectが実行されると処理が遅くなる可能性がある(大量のオブジェクトのinspectが行われる可能性がある)為、それを避ける為にsubscriberのcountを表示しるだけのシンプルなinspectを実装しています。


Merge pull request #44340 from matthewd/defer-xmlmini

Active Supportの修正です。

XmlMiniのロード処理を、実際に必要になる時まで遅延するよう修正しています。


Document some methods in ActionDispatch::ContentSecurityPolicy [skip-ci]

actionpack/lib/action_dispatch/http/content_security_policy.rbのdocの修正です。

ActionDispatch::ContentSecurityPolicy classの各メソッドにdocを追加しています。