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ロード時にエラーになってしまう為。