なるようになるブログ

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

rails commit log流し読み(2024/05/22)

2024/05/22分のコミットです。

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

activerecord/CHANGELOG.md


Make public method for schema_cache_ignored_tables?

activerecord/lib/active_record.rbactiverecord/lib/active_record/connection_adapters/schema_cache.rbの修正です。

schema cacheでtableがignoreされているかどうかをチェックするための、ActiveRecord.schema_cache_ignored_table?メソッドを追加しています。

ActiveRecord.schema_cache_ignored_tables = ["developers"]
ActiveRecord.schema_cache_ignored_table?("developers")
# => true

Add test and fix changelog for schema_cache_ignored_table?

activerecord/CHANGELOG.mdactiverecord/test/cases/connection_adapters/schema_cache_test.rbの修正です。

ActiveRecord.schema_cache_ignored_tablesを指定している箇所にActiveRecord.schema_cache_ignored_table?のチェックを追加、及び、CHANGELOG内でメソッド名をタイポしていたのを修正しています。


Fix typo

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

ActiveRecord.schema_cache_ignored_table?メソッドのdoc内のexampleコードでメソッド名をタイポしていたのを修正しています。


Document the transaction.active_record event

rails guideのActive Support Instrumentationの修正です。

Active Recordのhookの一覧に、transaction.active_record hookの説明を追加しています。