なるようになるブログ

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

rails commit log流し読み(2014/05/31)

2014/05/31分のコミットです。

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


Allow specifying a default value in overloaded properties

activerecord/lib/active_record/properties.rbの修正です

propertyにデフォルト値を設定できるよう対応しています。


Update guides to mention 3.2.18.

rails guideのA Guide for Upgrading Ruby on Railsの修正です。

3.2.17 -> 3.2.18へ修正しています。


Rename attribute related instance variables to better express intent

ActiveRecord::AttributeMethodsの修正です。

@attributes@raw_attributesに変更しています。より適切な名前への変更、という事のようです。


Update some bad test cases for serialized columns

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

serializedカラムのテストで、テストしたかった内容とコードがあって無かったのを修正しています。


Add missing test case for writing unknown attributes

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

存在しないアトリビュートに値を設定した時のテストを追加しています。


HashWithIndifferentAccess#dup doc [ci skip]

HashWithIndifferentAccess#dupのdocの修正です。

Returns an exact copy of the hash.となっていたのですが、exact copyは紛らわしい、という事でReturns a shallow copy of the hash.に修正しています。


Clear all caches calculated based on @columns when @columns changes

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

@columnの値に変更があった場合、columnに関するインスタンス変数を全てクリアするよう修正しています。再計算する為ですね。