2024/09/19分のコミットです。
CHANGELOGへの追加はありませんでした。
Render rdoc code example for routing defaults method
actionpack/lib/action_dispatch/routing/mapper.rbのdocの修正です。
ActionDispatch::Routing::Mapper::Scoping#defaultsメソッドのdocのフォーマットを修正しています。
Update ActionDispatch::SSL documentation
actionpack/lib/action_dispatch/middleware/ssl.rbのdocの修正です。
ActionDispatch::SSL classのdoc内のconfig.ssl_optionsのexcludeを指定する場合のexampleで、対象のpathがhealthcheckになっていたのをupに修正しています。Railsのデフォルトのhealthcheck用のpathと合わせる為。
Merge pull request #52964 from zzak/rm_que_adapter_autoload
activejob/lib/active_job/queue_adapters.rbの修正です。
Remove QueAdapter from Active Jobで削除されたQueAdapterをautoloadの対象から削除しています。
activesupport/test/benchmark_test.rb、
activesupport/test/core_ext/benchmark_test.rbの修正です。
benchmarkのテストで実行時間をチェックするのに0.5ミリ秒しかバッファが無かったのを10ミリ秒に変更していきます。テスト安定化のため。
Ensure consistent sort order in ActiveModel#serializable_hash when using only option
activemodel/lib/active_model/serialization.rbの修正です。
ActiveModel#serializable_hashメソッドにonlyオプションを指定した場合の戻り値のattributeの順番がDBのcolumnの順番に依存していたのを、引数に指定したattributeの順にかえるよう修正しています。
Reorder i18n hooks and reword comments
activesupport/lib/active_support/i18n_railtie.rbの修正です。
i18n用のhooksを実行される順に並び替え、及び、hookの挙動についてのコメントに詳細な挙動の説明を追加しています。
Optimize AR uniqueness validator class hierarchy lookup
activerecord/lib/active_record/validations/uniqueness.rbの修正です。
Active Recordのuniqueness validatorのクラス階層のlookup処理で、オブジェクト生成数を減らすようリファクタリングしています。
docs: add one sentence reason for having accelerated sendfile
rails guideのUsing Rails for API-only Applicationsの修正です。
Using Rack::Sendfileセクション内のフロントエンドがX-Sendfile headerをサポートしている場合について説明している箇所に、何故使用した方が良いかについての説明を追加しています。
docs: update jQuery ajax to fetch in api app guide
rails guideのUsing Rails for API-only Applicationsの修正です。
Using ActionDispatch::Requestセクション内でJSONデータを送信するexampleコードがjQueryを使用するコードになっていたのを、fetchメソッドを使用するよう修正しています。