2022/12/16分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actiontext/CHANGELOG.md
Hide changes to before_committed! behaviour behind config
Active Record、railtiesの修正です。
同じレコードが複数associationに登録された場合に、一度だけ(最初のレコードのみ)before_committed!
をcallbackを実行するよう修正した、Execute the before_committed! callbacks on the most recent copy of the recordの挙動をconfigで指定出来るよう修正しています。breaking changeになってしまう為、デフォルトでは元の挙動(登録されたレコード全てでbefore_committed!
callbackを実行する)を維持する為。
Fix Enumerable#compact_blank example in docs
activesupport/lib/active_support/core_ext/enumerable.rb
のdocの修正です。
Enumerable#compact_blank
のdoc内のexampleコードをcompact_blank
を使用するよう修正しています。
Use routes.default_url_options in AC::Renderer env
Action Pack、Action Textの修正です。
ActionController::Renderer
でrouteをrenderをする際に、default_url_options
、及び、config.force_ssl
に指定された値を使用するよう修正しています。また、Action Text のattachmentのURLをbackground jobで生成する際も、同様にdefault_url_options
、及び、config.force_ssl
に指定された値を使用するよう修正しています。
Revert "Lock sqlite3 gem to 1.4 to run Rails CI using rubylang/ruby:master-nightly-focal"
sqlite3 gemのバージョンを1.4系に固定した、Lock sqlite3 gem to 1.4 to run Rails CI using rubylang/ruby:master-nightly-focalをRevertしています。1.5系がインストールに失敗する問題が解消された為。
Revert "Lock sqlite3 gem to 1.4 to run bug report templates"
sqlite3 gemのバージョンを1.4系に固定した、Lock sqlite3 gem to 1.4 to run bug report templatesをRevertしています。1.5系がインストールに失敗する問題が解消された為。
Merge pull request #46163 from p8/rails-help-with-command-descriptions
railtiesの修正です。
rails help
実行時に全てのコマンドのdescriptionが表示されるよう修正しています。
Reduce Array object allocations
actionpack/lib/action_dispatch/middleware/remote_ip.rb
の修正です。
Arrayのcompact!
などの破壊的メソッドを使うようにしてオブジェクト生成数を減らすよう修正しています。
Reduce more Array object creations
actionpack/lib/action_dispatch/middleware/remote_ip.rb
の修正です。
ipのfilter処理でオブジェクト生成数を減らすよう修正しています。
actionpack/lib/action_dispatch/request/utils.rb
の修正です。
値の変換処理で不要なHashオブジェクトを生成しないよう修正しています。
Avoid duplicating HWIA and reduce object allocations
actionpack/lib/action_controller/log_subscriber.rb
の修正です。
HashWithIndifferentAccessオブジェクトの生成を減らすよう修正しています。
Unused default value that creates an Array object per each invocation
actionpack/lib/action_dispatch/http/mime_negotiation.rb
の修正です。
使用していないArrayオブジェクトの生成を行わないよう修正しています。
Reduce Array object allocation
actionpack/lib/action_dispatch/http/cache.rb
の修正です。
使用していないArrayオブジェクトの生成を行わないよう修正しています。
actionpack/lib/action_dispatch/middleware/remote_ip.rb
の修正です。
rubocopの設定に違反している箇所があったのを修正しています。
Merge pull request #46742 from ghiculescu/default-scope-reload
Active Recordの修正です。
all_queries: true
が指定されているdefault_scope
がある場合に、reload時にall_queries
がtrueになっているdefault_scope
も使用されてしまうバグがあったのを修正しています。