2020/05/28分のコミットです。
CHANGELOGへの追加はありませんでした。
Override clear_cache in custom path resolver
actionview/test/actionpack/controller/view_paths_test.rbの修正です。
custom path resolverのテストでclear_cacheメソッドをオーバーライドするよう修正しています。
テスト実行時にclear_cacheメソッドが実行されてしまう、かつ、ActionView::PathResolverに定義されているclear_cacheメソッドだとエラーになってしまう為。
Set retry_jitter to 0.0 for upgraded applications
activejob/lib/active_job/exceptions.rbの修正です。
ActiveJob::Base.retry_jitterのデフォルト値が0.0に変更しています。6.1からアップグレードしたアプリの挙動が変わらないようにする為。
Active Recordの修正です。
migrationのindexオプションをキーワード引数で受け取るよう修正しています。
Make remaining migration options to kwargs
Active Recordの修正です。
migrationのオプションを全てキーワード引数で受け取るよう修正しています。
merge doesn't allow to overwrite partially matching nodes
activerecord/lib/active_record/relation/where_clause.rbの修正です。
mergeで部分的に一致したnodeをオーバーライドは行わないよう修正しています。
Update assert_redirected_to docs [ci skip]
actionpack/lib/action_dispatch/testing/assertions/response.rbのdoc、及び、rails guideのTesting Rails Applicationsの修正です。
assert_redirected_toメソッドのdocにoptionsに指定された値にpartially matchする旨説明が記載されていたのですが、実際はoptionsの値にはpartially matchしないので該当の説明を削除しています。
Merge pull request #39344 from jonathanhefner/guide-form_helpers
rails guideのAction View Form Helpersの修正です。
formについて説明している箇所でform helperメソッドを使うよう説明を修正、変数名を適切な名前に修正、等を行っています。
Fix nil signed/encrypted cookie value when value is stored as false
actionpack/lib/action_dispatch/middleware/cookies.rbの修正です。
encrypted/signed cookie にfalseが格納されていた場合に、値取得時にnilになってしまうバグがあったのを修正しています。
Merge pull request #39453 from dylanahsmith/transaction-return-no-raise
Active Recordの修正です。
Deprecate committing a transaction exited with return or throw (#29333)で、transaction block内でreturn、break、throwを使用するのがdeprecaeになったのですが、このdeprecate処理を、transaction内でデータの書き込みが行われた場合のみdeprecateメッセージを表示するよう修正しています。
with_lock do return if some_crtieria_met? # do work end
上記のように、transaction block内でearly returnした場合にメッセージが表示されないようにする為。
ActiveStorage::Attachment#signed_id must return a signed blob ID
activestorage/app/models/active_storage/attachment.rbの修正です。
url helperの引数にblobを指定した場合に、誤ったURLが生成されてしまうバグがあったのを修正しています。