なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2023/10/07)

2023/10/07分のコミットです。

CHANGELOGへの追加はありませんでした。


Fix typo in exception message re: raise_on_missing_callback_actions

actionpack/lib/abstract_controller/callbacks.rbの修正です。

controllerのbefore_actionのonly/unlessに指定するSymbolが存在しない場合に表示するエラーメッセージ内の、挙動を変更する為のconfig名が誤っていたのを修正しています。


Fix reverting rename_table for older migrations

activerecord/lib/active_record/migration/command_recorder.rbの修正です。

7.0以下のバージョンのmigrationファイルでrename_tableを使用している場合、そのmigrationファイルのrevert処理がArgumentErrorをraiseしてしまうバグがあったのを修正しています。


Adds DOCTYPE html to the response from up on the HealthController

railties/lib/rails/health_controller.rbの修正です。

HealthControllerが返すHTMLにDOCTYPEの指定が無かったのを修正しています。


Add doc to explain how to migrate to the new BroadcastLogger:

activesupport/lib/active_support/broadcast_logger.rbのdoc、及び、rails guideのUpgrading Ruby on Railsの修正です。

Rails 7.1ではRails.loggerActiveSupport::BroadcastLoggerインスタンスを返すようになった事、及び、ActiveSupport::Logger.broadcastを使用していた場合、どのような変更が必要かの説明を追加しています。