2022/05/25分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Explicitly states that the return value is seconds
activesupport/lib/active_support/time_with_zone.rb
のdocの修正です。
TimeWithZone#-
メソッドのdocに、引数の値オブジェクトのacts_like?
がTimeの場合、戻り値はsecondsをFloatで返す旨説明を追加しています。
Change DeveloperWithDefaultNilableMentorScopeAllQueries
name
activerecord/test/cases/scoping/default_scoping_test.rb
、
activerecord/test/models/developer.rb
の修正です。
テスト用のmodelを適切な名前に修正しています。
Merge pull request #45061 from matthewd/assert-on-main-thread
activesupport/test/evented_file_update_checker_test.rb
の修正です。
EventedFileUpdateChecker
のテストで、forkされたプロセスでエラーが発生した場合、テスト自体がfailするよう修正しています。
Move convert_to_model
call from form_for
to form_with
actionview/lib/action_view/helpers/form_helper.rb
の修正です。
form_with
で指定されたrecordに対して必ずconvert_to_model
による変換処理が行われるよう修正しています。
Merge pull request #45174 from fatkodima/fetch_multi-force
activesupport/lib/active_support/cache.rb
、
activesupport/lib/active_support/cache/redis_cache_store.rb
の修正です。
ActiveSupport::Cache::Store#fetch_multi
メソッドにforce
オプションを指定出来るよう修正しています。
Avoid validating a unique field if it has not changed and is backed by a unique index
activerecord/lib/active_record/validations/uniqueness.rb
の修正です。
uniqueness
validationで、値が変わっておらず、かつ、テーブルでユニーク制約が指定されていない場合、 validation処理が行われないよう修正しています。uniqueness
チェックの為の不要なqueryが実行されるのを避ける為。