なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2023/01/09)

2023/01/09分のコミットです。

CHANGELOGへの追加はありませんでした。


Merge pull request #46923 from fatkodima/fix-grouped-calculations-joins-same-column

activerecord/lib/active_record/relation/calculations.rbの修正です。

joinしたtableに対するcalculation処理で、join元と先のtableで同じカラムがあり、そのカラムに対して処理を行う場合に正しく結果が取得出来ないバグがあったのを修正しています。


Fix typos in guides [ci-skip]

rails guideの修正です。

各guideのタイポをまとめて修正しています。


Clarify instructions for testing new plugin [ci-skip]

rails guideのThe Basics of Creating Rails Pluginsの修正です。

Testing Your Newly Generated Pluginの項の言い回しを修正しています。


Clarify usage of data-turbo-confirm [ci-skip]

rails guideのWorking with JavaScript in Railsの修正です。

Confirmationsの項の言い回しを修正しています。


Indent private methods in code examples [ci-skip]

docの修正です。

exampleコード内のprivateメソッドのインデントを調整しています。


Fix typos in API docs [ci-skip]

docの修正です。

doc内のタイポを修正しています。


Format inline code [ci-skip]

docの修正です。

dcoのフォーマットの修正を行っています。


Document AD::Request::RFC* constants individually [ci-skip]

actionpack/lib/action_dispatch/http/request.rbのdocの修正です。

ActionDispatch::Request配下のRFC関連の定数のドキュメントがまとめて記載されていたのを、定数毎にわけて記載するよう修正しています。


Reference AS::Deprecation instance methods [ci-skip]

activesupport/lib/active_support/deprecation/disallowed.rbの修正です。

deprecationメッセージの挙動を設定する方法について説明している箇所で、ActiveSupport::Deprecationインスタンス毎に挙動設定する方法の説明を記載するよう修正しています。


Coordinate FilterParameters and ParameterFilter docs [ci-skip]

actionpack/lib/action_dispatch/http/filter_parameters.rbactivesupport/lib/active_support/parameter_filter.rbのdocの修正です。

ActionDispatch::Http::FilterParametersからfilter処理に関する説明を削除し、代わりにActiveSupport::ParameterFilterへのリンクを追加しfilter処理の詳細はそちらを参照するよう説明を修正しています。


Clarify caveats of parameterized association scope [ci-skip]

activerecord/lib/active_record/associations.rbのdocの修正です。

parameterized associationに対するjoin / eager load処理の注意事項について説明している箇所の言い回しを修正しています。


Document increment order for {Date,etc}#advance [ci-skip]

docの修正です。

Date#advanceTime#advanceDateTime#advanceのdocに異なる項目に対してincrement処理を同時に行った場合の挙動についての説明を追加しています。


Document EncryptedConfiguration#read [ci-skip]

activesupport/lib/active_support/encrypted_configuration.rbのdocの修正です。

EncryptedConfiguration#readメソッドのdocの説明を修正しています。


Document EncryptedConfiguration access methods [ci-skip]

activesupport/lib/active_support/encrypted_configuration.rbのdocの修正です。

ActiveSupport::EncryptedConfiguration classにdocを追加しています。


Document EncryptedConfiguration#config [ci-skip]

activesupport/lib/active_support/encrypted_configuration.rbのdocの修正です。

EncryptedConfiguration#configメソッドにdocを追加しています。


Revise Rails::Application#credentials doc [ci-skip]

railties/lib/rails/application.rbのdocの修正です。

Rails::Application#credentialsメソッドのdocの言い回しを修正しています。


Revise Rails::Application#encrypted doc [ci-skip]

railties/lib/rails/application.rbのdocの修正です

Rails::Application#encrypedメソッドのdocの言い回しを修正しています。


Replace RFC 2616 links [ci-skip]

docの修正です。

cacheに関して説明している箇所で古いRFC(RFC 2616)にリンクしている箇所があったのを、新しいRFC(RFC 9111)やMDNへのリンクに修正しています。


Clean up ConditionalGet#fresh_when doc [ci-skip]

actionpack/lib/action_controller/metal/conditional_get.rbのdocの修正です。

ConditionalGet#fresh_whenメソッドのdocについてフォーマットやタイポの修正を行っています。


Clean up ConditionalGet#stale? doc [ci-skip] actionpack/lib/action_controller/metal/conditional_get.rbのdocの修正です。

ConditionalGet#stale?メソッドのdocについてフォーマットやタイポの修正を行っています。


Revise ConditionalGet#expires_in doc [ci-skip]

actionpack/lib/action_controller/metal/conditional_get.rbのdocの修正です。

ConditionalGet#expires_inメソッドのdocについてフォーマットの修正やオプションの説明の追加などを行っています。


Document ActionController::Rendering#render [ci-skip]

docの修正です。

ActionController::Rendering#renderメソッドにdocの追加、及び、関連する処理のdocの修正を行っています。


Fix link to association_basics.html guide

rails guideのActive Record Basicsの修正です。

Active Record Associations guideのリンク先が誤っていたのを修正しています。


Add changelog for #46858 since it affects railties default middleware stack

railties/CHANGELOG.mdの修正です。

config.hostsの指定が空の場合不要なActionDispatch::HostAuthorization middlewareをrack middlewareの一覧に追加しないよう修正した、Only use HostAuthorization if configuredの対応についてrailtiesのCHANGLOGにもエントリーを追加しています。


Fix compatability between tests and Sidekiq 6.5

activejob/test/support/integration/adapters/sidekiq.rbの修正です。

Sidekiq 6系でもテストが通るよう、Sidekiq 7系で追加された定数は使わないよう修正、及び、configの設定がSidekiq 6系でも行われるよう修正しています。


Merge pull request #46927 from ghiculescu/missing-associated-guide-v2

rails guideのActive Record Query Interfaceの修正です。

where.associated and where.missingにあるexampleコードで生成されるSQLの例が実際の結果と異なっていたのを修正しています。