なるようになるブログ

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

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

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

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


Clean up debugging guide and fix minor grammatical errors[ci skip]

rails guideのDebugging Rails Applicationsの修正です。

ガイド全体のグラマーの改善を行っています。


[ci skip] Fix example codes of form_for method

actionview/lib/action_view/helpers/form_helper.rbのdocの修正です。

メソッドのexample codeで、メソッドの引数に誤りがあったのを修正しています。


Added missing fullstop in engine API docs [ci skip]

railties/lib/rails/engine.rbのdocの修正です。

文末にピリオドが無かった箇所があったのを修正しています。


Fix method call typo [ci skip]

rails guideのDebugging Rails Applicationsの修正です。

simple format -> simple_format にタイポを修正しています。


Use args instead of *args in kwargs_request? method

actionpack/lib/action_controller/test_case.rbactionpack/lib/action_dispatch/testing/integration.rbの修正です。

kwarg_request?メソッド引数を*args -> argsに修正しています。

そもそも配列で値を渡しているので*を使用する必要は無い、かつ*で受けた場合の方がArrayの生成処理がある分遅い為、配列で受けないよう修正したようです。


Use def before_setup instead of setup do

railties/lib/rails/test_help.rbの修正です。

ActionController::TestCaseActionDispatch::IntegrationTestクラスの前処理の定義にsetupメソッドを使用していたのを、before_setupメソッドを使用するよう修正しています。

setupはproc objectを生成する分ちょっと遅いので、before_setupを使用するようにしたようです。