2023/10/14分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #49610 from ezekg/fix/note-on-rails-7-1-sha-1-bug
rails guideのUpgrading Ruby on Railsの修正です。
Active Record Encryption algorithm changesセクションに、config.active_record.encryption.support_sha1_for_non_deterministic_encryption configの説明と、このconfigが何故必要なのかの詳細な説明を追加しています。
Simplify call / early return with safe navigator
actionpack/lib/action_dispatch/http/request.rbの修正です。
send_early_hintsメソッドをsafe navigatorを使用するようリファクタリングしています。
Use to_sentence to show list of methods without using I18n
actionpack/lib/action_dispatch/http/request.rbの修正です。
想定外のなHTTP methodが指定された場合のエラーメッセージの生成処理をto_sentenceメソッドを使用するようリファクタリングしています。
Raise on foreign_key: being passed as an array in associations
activerecord/lib/active_record/reflection.rbの修正です。
associationのforeign_keyオプションにArrayが渡された場合にArgumentErrorをraiseするよう修正しています。foreign_keyオプションへのArrayの指定はサポートしておらず、単純に指定が誤っているだけの為。
Docs typo: rails/railties/lib/rails/engine.rb
railties/lib/rails/engine.rbのdocの修正です。
Rails Engineに関するdoc内のタイポを修正しています。
直前のRaise on foreign_key: being passed as an array in associationsの対応で追加されたCHANGELOGのエントリーを削除しています。Rails 7.1にバックポートされる予定で7.2のCHANGELOGには不要な為。
[Tests only] Enable Minitest/AssertPredicate rule
Minitest/AssertPredicate copを追加、及び、各ファイルにcopを適応しています
Fix changelog linter to not run indefinitely on invalid changelogs
tools/rail_inspector/lib/rail_inspector/changelog.rbの修正です。
CHANGELOGのフォーマットが不正なフォーマットの場合にchangelog linterの処理が完了しないバグがあったのを修正しています。
rails guideのConfiguring Rails Applicationsの修正です。
config.active_storage.content_types_allowed_inlineについて説明している箇所のタイポを修正しています。