2023/01/17分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actionmailer/CHANGELOG.md
Merge pull request #47023 from Shopify/shapes-friendliness
Ruby 3.2で追加されたObject Shapesというオブジェクトのプロパティを効率的に格納するための技術が、効率的に使われるよう、変数の初期化処理を適切に行うよう等の修正を行っています。
参考:
Merge pull request #47010 from dvisockas/main
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
group
を再設定する為のregroup
メソッドを追加しています。.unscope(:group).group(fields)
のショートハンド。
Merge pull request #46955 from jonathanhefner/tagged_logging-formatter-perf
activesupport/lib/active_support/tagged_logging.rb
の修正です。
TaggedLogging::Formatter
の性能改善の為のリファクタリングを行っています。
activerecord/lib/active_record/core.rb
の修正です。
lint errorになるコードがあったのを修正しています。
assert_emails
: return the emails that were sent
actionmailer/lib/action_mailer/test_helper.rb
の修正です。
assert_emails
の戻り値としてblock内で送信したメールを返すよう修正しています。
Revert "Merge pull request #46964 from searls/patch-1"
Custom Validators
について説明している箇所に追加されたcustom validatorはauto loadの対象になる旨説明を追加した、Guides: AR Validations - Mention that Rails will autoload validators をRevertしています。app/validators
ディレクトリが特別扱いされいるわけではなく、Railsのautoloaderの通常動作であり、ここに記載すべき情報では無いため。
Merge pull request #47022 from zzak/callbacks-links-continued
Actvive Modelのdocの修正です。
ActiveSupport::Callback
のdocから自身のdocへのリンクがされないよう修正しています。
activesupport/lib/active_support/current_attributes.rb
の修正です。
CurrentAttributes
に指定出来ないattribute nameの一覧をconstantで保持するよう修正しています。
Reset the instace variable instead of removing it
activerecord/test/cases/filter_attributes_test.rb
の修正です。
Improve Rails' Shape friendlinessの対応の影響でテストがエラーになるようになってしまったのを修正しています。
Merge pull request #46915 from joshuay03/update-action-pack-render-template-tests
actionpack/test/controller/new_base/render_template_test.rb
の修正です。
renderのtemplate名に/
付きの値を指定した場合のテストを追加しています。
Update doc to use bin/rails which is the correct convention for invoking rails commands
actionpack/lib/action_dispatch/routing.rb
のdocの修正です。
routes
コマンドを実行する例でbin/rails
を使用するよう修正しています。
Merge pull request #47032 from Shopify/shapes-friendliness-2
Improve Rails' Shape friendlinessの続きで、Object Shapesが効率的に使われるよう、変数の初期化処理を適切に行うよう等の修正を行っています。