なるようになるブログ

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

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

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

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


Fix a typo in http_basic_authenticate_with

actionpack/lib/action_controller/metal/http_authentication.rbの修正です。

http_basic_authenticate_withメソッドでチェックする変数名が誤っていたのを修正しています。


Eager load ActionDispatch::Routing::RoutesProxy

actionpack/lib/action_dispatch/routing.rbの修正です。

ActionDispatch::Routing::RoutesProxyをeager loadするよう修正しています。url_forメソッド呼び出し時に動的にloadされるのを避ける為。


Do not remove assets initializer when using propshaft

railties/lib/rails/generators/app_base.rbrailties/lib/rails/generators/rails/app/app_generator.rbの修正です。

propshaftを使用している場合にconfig/initializers/assets.rbを削除しないよう修正しています。propshaftでconfig.assets.versionをdigestに含むようになり、config/initializers/assets.rbが必要になった為。


Load with Zeitwerk

Action Cableの修正です。

ファイルのautoloadをZeitwerkを使用して行うよう修正しています。


Remove require "thread" from Action Cable

Action Cableの修正です。

現在は不要な明示的なthreadのrequireを削除しています。


Setup Zeitwerk in a dedicated file

Action Cableの修正です。

Zeitwerkのセットアップ処理をactioncable/lib/action_cable.rbで行っていたのを、個別のファイルで行うよう修正しています。


Add missing magic comment (linting)

actioncable/lib/action_cable/zeitwerk.rbの修正です。

frozen_string_literalのmagic commentが不足していたのを修正しています。


Fix invalid syntax in all_queries example [ci skip]

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

all_queriesオプションを指定するexampleコードでdefault_scopeのblock指定の方法が誤っていたのを修正しています。