2023/10/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Support Active Model attribute type decoration
activemodel/lib/active_model/attribute_registration.rbの修正です。
Active Model attributeをdecorateするためのdecorate_attributesメソッドを追加しています。このメソッド自体はprivate APIで、ActiveRecord::Base.normalizesや.enumでこれらのメソッドを使用するようリファクタリングする予定のようです。
Use ActiveModel::AttributeRegistration in AR
Active Recordの修正です。
ActiveRecord::AttributesでActiveModel::AttributeRegistrationを使用するようリファクタリングしています。先程追加したdecorate_attributesメソッドを使用するようにする為。
Merge pull request #49490 from stevepolitodesign/sp-improve-generator-logging
railties/test/generators/actions_test.rbの修正です。
RAILS_LOG_TO_STDOUT envがtrueの場合、action実行時のstdoutをそのまま出力するよう修正しています。
We don't use :: to denote class methods
activemodel/test/cases/attribute_registration_test.rbの修正です。
テスト名でクラスメソッドを表すのに::を使用している箇所があったのを.に修正しています。基本的に.を使用している為。
activemodel/lib/active_model/attribute_registration.rbの修正です。
メソッドを動的に呼び出す際に__method__を使用していたのをメソッド名を明示的に指定するよう修正しています。呼び出すメソッドを明確にする為。
各ファイルから不要な空行を削除しています。
Add psych to the bug report template
guides/bug_report_templates/action_controller_gem.rbの修正です。
psych gemをGemfileに追加しています。明示的に指定が無いとBundlerがgemロード時にエラーになってしまう為。