2023/11/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Delay validation of registered Active Record adapters. Allow adapter aliasing.
Active Recordの修正です。
DB adapter名のvalidation処理を、実際にadapterが必要になる処理まで遅延させるよう修正しています。adapter名をaliasで登録出来るようにする予定があり、そのための対応との事です。
Change disjunction to conjunction in suggestion
activerecord/lib/active_record/connection_adapters.rbの修正です。
指定されたadapterが見つからなかった場合のエラーメッセージの言い回しの修正を行っています。
ErrorReporter#unexpected to report in production but raise in development
activesupport/lib/active_support/error_reporter.rb、
railties/lib/rails/application/bootstrap.rbの修正です。
想定外の挙動があった場合にそれを通知する為のErrorReported#unexpectedメソッドを追加しています。
def edit if published? Rails.error.unexpected("[BUG] Attempting to edit a published article, that shouldn't be possible") return false end # ... end
このメソッドは、development及びtest環境ではエラーをraiseする、しかし、productionではエラーをreportするだけ(raiseはしない)という挙動になっています。raiseをするかどうかはconfig.consider_all_requests_localに依存するよになっており、config.consider_all_requests_localがtrueの場合raiseするようになっています。
Merge pull request #50106 from thiagopradi/main
Action Mailerのテストの修正です。
使用していないテスト用のfixtureを削除しています。
Merge pull request #49925 from akhilgkrishnan/add-missing-methods-in-view-helper-guide
rails guideのAction View Helpersの修正です。
Overview of Helpers Provided by Action Viewセクションに、audio_tag、favicon_link_tag、および、video_tagメソッドについての説明を追加しています。