なるようになるブログ

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

rails commit log流し読み(2020/12/04)

2020/12/04分のコミットです。

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


Merge pull request #40731 from ghiculescu/patch-2

rails guideのActive Storage Overviewの修正です。

Direct Uploadsの項に、form builderを使用している場合のexampleを追加しています。


Allow custom purpose for ActiveStorage signed IDs

activestorage/app/models/active_storage/blob.rbの修正です。

Active Storageのsigned IDに任意のpurposeを指定出来るよう修正しています。


Only execute route reloads once on boot for development environment

railties/lib/rails/application/finisher.rbrailties/lib/rails/application/routes_reloader.rbの修正です。

development environmentでboot時にroute reload処理が複数回実行されてしまうバグがあったのを修正しています。


Align all the assigments

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

変数代入処理のスペースの調整を行っています。


Impove the RoutesReloader to not expose internal API

railties/lib/rails/application/finisher.rbrailties/lib/rails/application/routes_reloader.rbの修正です。

route reloaderの処理の制御にコールバックを使用していたのを、attributeを使用するよう修正しています。


Fix the cop violation :cop:

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

rubocopの設定に違反している箇所があったのを修正しています。


Merge pull request #40740 from abhaynikam/add-spec-for-action-text-warning

railties/test/generators/action_text_install_generator_test.rbの修正です。

Action Text installerでwarningが表示される場合のテストを追加しています。


Don't use explicit references for join aliases

activerecord/lib/active_record/associations/join_dependency.rbactiverecord/lib/active_record/relation/predicate_builder.rbの修正です。

join aliasesにStringのassociation nameを指定した場合もRails 6.0までの同様に動作するよう修正しています。