なるようになるブログ

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

rails commit log流し読み(2015/01/18)

2015/01/18分のコミットです。

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


Fix a false assertion

activerecord/test/cases/date_time_test.rbの修正です。

値が等しい事を確認するテストにassertを使ってしまっている箇所があったので、assert_equalに修正しています。


Fixed test for assert_welcome

railties/test/isolation/abstract_unit.rbの修正です。

"Content-Type"の確認を行うテストの内容に誤りがあったのを修正しています。


Removed documentation of deprecated removed methods [ci skip]

rails guideのActive Support Core Extensionsの修正です。

Rails 4.2でdeprecatedになったsilence_streamquietlyメソッドについて説明している箇所を削除しています。


bring back unintentionally removed blank line [ci skip]

railties/lib/rails/generators/rails/model/USAGEの修正です。

誤って削除してしまったファイル終端の改行を戻しています。


Eliminate a ruby warning in a test in Action View

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

warningが出ていた(warning: method redefined; discarding old id_came_from_user?warning: previous definition of id_came_from_user?)のを対応しています。

id_came_from_user?メソッドの定義を行っていたのですが、既に同名のメソッドが定義済みだったのでwarningが出たいのですね。undefを行うよう対応しています。


[ci skip] fix positions of parentheses

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

閉じ括弧をピリオドの前に移動しています。


[ci skip] Move a introduction of Module.nesting

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

Module.nestingについての説明をNestingの項の先頭に移動しています。


nodoc ActionView::ModelNaming module

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

ModelNamingに:nodoc:を追加しています。


remove reference to Logger core extensions from guide [ci skip]

rails guideのActive Support Core Extensionsの修正です。

既に存在しないLoggerクラスについての説明を削除しています。


Use existing constant for joining instead of '_'

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

record_key_for_dom_idメソッドjoinする区切り文字を、"_"ではなく、既に存在している定数を使用するよう修正しています。