なるようになるブログ

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

rails commit log流し読み(2023/05/06)

2023/05/06分のコミットです。

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

activerecord/CHANGELOG.md


Merge pull request #48088 from skipkayhil/hm-log-sub-docs

activesupport/lib/active_support/log_subscriber.rbactivesupport/lib/active_support/subscriber.rbのdocの修正です。

docのフォーマットの修正、exampleコードに処理が足りてない部分があったのを修正、ActiveSupport::LogSubscriberに記載すべき説明がActiveSupport::Subscriberにあったのを修正、などを行っています。


Merge pull request #47826 from skipkayhil/doc-test-case-aliases

activesupport/lib/active_support/test_case.rbactivesupport/lib/active_support/testing/assertions.rbの修正です。

Railsが独自に定義しているassert系のメソッドにdocを追加しています。


Add documentation for ActionText::Attachment [ci-skip]

actiontext/lib/action_text/attachment.rbのdocの修正です。

ActionText::Attachment class、及び、class配下の各メソッドにdocを追加しています。


Use _read_attribute in associations preloader instead of public reader

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

association preloaderでforeign keyを取得するのに#[]を使用していたのを_read_attributeを使用するよう修正しています。composite primary keyを使用している場合に正しくロード出来るようにする為。


Deprecate check_pending! in favor of check_all_pending!

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

ActiveRecord::Migration.check_pending!がdeprecateにしています。今後はActiveRecord::Migration.check_all_pending!を使用する必要があります。check_pending!は現在のDBのconnection、または、引数に指定されたconnectionのmigrationファイルしかチェックせず、複数DBの設定がある場合に正しくチェックが出来ない為、というのが理由のようです。


Some cleanups for ActionText documentation [ci-skip]

actiontext/lib/action_text/attachable.rbactiontext/lib/action_text/content.rbのdocの修正です。

Action Textのdocのフォーマットの修正を行っています。


correct typo

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

increment_counterメソッドのdoc内のbyオプションの説明に誤りがあったのを修正しています。


Merge pull request #48140 from btoews/merge-docs

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

mergeメソッドのdocにandメソッドとの違いについての説明を追加しています。