なるようになるブログ

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

rails commit log流し読み(2016/07/16)

2016/07/16分のコミットです。

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


Merge pull request #25826 from javan/actionview/trim-digestor-template-lookups

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

ActionView::Digestor#treeメソッドでtemplateのlookupを行う際、#exists?で存在チェックしてから再度#find処理を行う、という風に2回lookup処理を行っていたのを、一度だけlookup処理を行うよう修正しています。


add missing braces [ci skip]

rails guideのA Guide to Testing Rails Applicationsの修正です。

Setting Headers and CGI variables項内のexampleコード内のHashに{}が不足している箇所があったのを修正しています。


Update references generation docs to exclude index

rails guideのActive Record Migrationsの修正です。

Pare back default `index` option for the migration generatorreferences migrationsで生成したmigrationのコードにはindexオプションを設定しないようになった(デフォルトでindexを生成する為)のですが、ガイド内のreferences migrationsで生成したexampleコードにindex: trueオプションが残ってしまっていた為、削除しています。


Fix wrong test name

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

add_referenceメソッドにindex_opionを指定してないでもidのindexを作成する事を確認するテストのテスト名に誤りがあったのを修正しています。