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
メソッドについての説明を追加しています。