なるようになるブログ

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

rails commit log流し読み(2015/02/09)

2015/02/09分のコミットです。

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

actionpack/CHANGELOG.md


Explicitly ignored wildcard verbs from head_routes

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

HEADリクエストのroutesを検索する際、routesのverbが//になっているものを削除するよう修正しています。

rack appをroot(/)にマウントしている際に、verb//になるrouteを作成されてしまい、HEADメソッドでリクエストが404になってしまうバグがあった為、対応しています。


Remove warning from Plugin Generator

railties/lib/rails/generators/rails/plugin/plugin_generator.rbの修正です。

wrap_in_modulesメソッドwarning: shadowing outer local variable - contentのwarningが出ていたので、変数名を修正して対応しています。


Remove warning from ActionView::Helpers::Tags::Translator

actionview/lib/action_view/helpers/tags/translator.rbの修正です。

warning: private attribute?のwarningが出ていたので、インスタンス変数の可視性をprivate -> protectedに修正しています。


Remove warning from generator named base test

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

warning: method redefined; discarding old pluralize_table_namesのwarningが出ていたので、NamedBaseTest内でActiveRecord::Basepluralize_table_namesメソッドを定義していたのを、削除しています。


tests, reset global to previous value.

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

test_named_generator_attributes_without_pluralizedpluralize_table_namesの値を変更していたので、後処理で元の値に戻すよう修正しています。