なるようになるブログ

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

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

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

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


Don't allocate a bunch of strings in Relation::Merger

activerecord/lib/active_record/relation/merger.rbの修正です。

Merge#merge_clausesメソッドで、clause method名の生成を、メソッド内で行っていたのを、メソッドの外(クラスロード時)に行うよう修正しています。

大量のStringの生成処理をメソッド内で行わないようにする為の改善との事です。


docs, make blank? behavior clear. Closes #21468. [ci skip]

activesupport/lib/active_support/core_ext/object/blank.rbのdocの修正です。

Object#blank?メソッドのdoc内にある説明が、実装と異なってしまっていたのを修正しています。


Remove unnecessary require in associations_test.rb

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

使用していないmodelのrequireを削除しています。


add a description of the return value that was missing [ci skip]

rails guideのActive Model Basicsの修正です。

Dirtyの項、 changed?メソッドの戻り値についての説明が欠けていたのを追加しています。


Removed unused config file

activemodel/test/config.rbactivemodel/test/cases/helper.rbの修正です。

使用していていないテスト用のconfigファイルを削除しています。


[ci skip] Added localhost IPv6

actionpack/lib/action_dispatch/http/request.rbのdocの修正です。

Request#local?メソッドのdocで、 localhostと判定されるIPのリストにIPv6のアドレスが無かったので、追加しています。