なるようになるブログ

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

rails commit log流し読み(2022/11/05)

2022/11/05分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activesupport/CHANGELOG.md


Fix schema_up_to_date connection

activerecord/lib/active_record/migration.rbactiverecord/lib/active_record/tasks/database_tasks.rbの修正です。

schema_up_to_date?メソッドで、処理完了時に処理前に接続していたconnectionに接続し直すよう修正しています。


Ensure pipe is closed after test run

activesupport/lib/active_support/testing/isolation.rbの修正です。

ActiveSupport::Testing::Isolation::Forkingで、作成したpipeがcloseされない事があったのを、確実にcloseされるよう修正しています。


Improve Parametric Scopes documentation

rails guideのRails Routing from the Outside Inの修正です。

route helper methodにnamed parameterを指定した場合に生成されるpathについての詳細な説明を追加しています。


Make error highlight readable on dark mode

actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erbの修正です。

viewのerror highlightがdark modeの場合にも見やすくなるようcssを修正しています。


Fix clear_all_connections! NoMethodError

actioncable/test/subscription_adapter/postgresql_test.rbの修正です。

Action Cableのテストの後処理でNoMethodErrorが発生してしまっていたのを修正しています。


Fix clear_reloadable_connections! deprecation warning

actioncable/test/subscription_adapter/postgresql_test.rbの修正です。

Action Cableのテストでdeprecatedになったメソッドを使用している箇所があったのを修正しています。


Add :touch to has_one options in documentation

activerecord/lib/active_record/associations.rbのdocの修正です。

has_one associationのオプションについて説明している箇所に、:touchオプションについての説明を追加しています。


Correct missing template error page

actionpack/lib/action_dispatch/middleware/templates/rescues/missing_exact_template.html.erbの修正です。

renderするテンプレートが見つからなかった場合に表示されるエラーテンプレート内のエラーメッセージの、controllerのexampleのpathが誤っていたのを修正しています。