なるようになるブログ

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

rails commit log流し読み(2024/09/20)

2024/09/20分のコミットです。

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


Fix test so that requests are considered local

railties/test/rails_info_controller_test.rbの修正です。

consider_all_requests_localがtrueになっている場合の挙動を確認するテストで、consider_all_requests_localがtrueになってなかったのを修正しています。


Update devcontainer Tip on getting started

rails guideのGetting Started with Railsの修正です。

Creating a New Rails Projectセクションで、Dev Container用のファイルがデフォルトで生成される旨説明が記載されていたのを、Dev Container用のファイルを生成する事ができる、旨説明を修正しています。Rails 7.2ではデフォルトでは生成されないようになっている為。


Fix infinite loop computing ERB dependencies with non-trailing interpolations

actionview/lib/action_view/dependency_tracker/erb_tracker.rbの修正です。

non-trailing interpolations(e.g. test/\#{bucket.bucketable_name.pluralize}/status/show)のERBの依存関係の取得処理が無限ループになってしまうバグがあったのを修正しています。


Fix uniqueness validations defined on singleton classes

activerecord/lib/active_record/validations/uniqueness.rbの修正です。

uniqueness validationsをsingleton classで定義するとNoMethodErrorでエラーになるバグがあったのを修正しています。


Kamal 2 compatible configuration (#52883)

railtiesの修正です。

Kamal向けの設定ファイルを、Kamal v2向けの内容に更新しています。


Use the correct format for kamal secrets in the comment

railties/lib/rails/generators/rails/app/templates/kamal-secrets.ttの修正です。

Kamalのsecretsを取得するコマンドのexampleが、実際には動作しないコマンドになっていたのを修正しています。