なるようになるブログ

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

rails commit log流し読み(2022/07/28)

2022/07/28分のコミットです。

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


Merge pull request #45663 from jonathanhefner/encrypted_command-refactor-like-credentials_command

railties/lib/rails/commands/encrypted/encrypted_command.rbの修正です。

EncryptedCommand class内のメソッドの定義や各メソッドの引数の指定等をCredentialsCommand` classと同じ構成にするよう修正しています。


Merge pull request #45581 from cantin/autoloading_guide_update

rails guideのAutoloading and Reloading Constantsの修正です。

initializersで定義したinflectorの指定はonce autoloaderには影響が無く、once autoloaderで使用したいinfectorがある場合はconfig/application.rbに定義する必要がある旨説明を追加しています。


Get rid of Erubi#evaluate

actionview/lib/action_view/template/handlers/erb/erubi.rbの修正です。

テストでのみ使用していたErubi#evaluateメソッドを削除しています。


Always use an actual Action View buffer to render templates

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

ActionView::TestCaseでtemplateをrenderするのにActiveSupport::SafeBufferを使用していたのを、ActionView::OutputBufferを使用するよう修正しています。実際のAction Viewのrenderの挙動と極力同じにする為。