なるようになるブログ

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

rails commit log流し読み(2021/05/12)

2021/05/12分のコミットです。

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


update tests for SecureRandom.base58 method

activesupport/test/core_ext/secure_random_test.rbの修正です。

SecureRandom.base58メソッドのテストで値が指定の範囲内の値になっている事を確認するテストを追加しています。


Merge pull request #42195 from jhawthorn/template_path

Action Viewの修正です。

ActionView::Resolver::Pathをパスの双方向変換が出来るようリファクタリングし、ActionView::TemplatePathに切り出しています。resolver以外でも使用出来るようにする為に、ActionView直下に含むようにしています。


Remove duplicated test_parse_partial

actionview/test/template/template_path_test.rbの修正です。

重複していたtest_parse_partialテストを削除しています。


Add missing slash to test_parse_root_partial_with_slash

test_parse_root_partial_with_slashの修正です。

pathを指定する際にslashを指定するのが漏れていたのを修正しています。


select! and reject! doesn't return self unless any elements are matched

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

select!reject!を使用しているのに戻り値を代入している箇所があったのを修正しています。


Add example for proc-based route to Routing guide

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

Routing to Rack Applicationsの項に、routingのtoオプションにProcを指定した場合のexampleを追加しています。