なるようになるブログ

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

rails commit log流し読み(2018/06/06)

2018/06/06分のコミットです。

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


PERF: avoid allocating column names where possible

activemodel/lib/active_model/attributes.rbactiverecord/lib/active_record/attribute_methods.rbactiverecord/lib/active_record/result.rbの修正です。

column nameを生成する際に、dup + freezeしていたのを、String#-@を使用するように修正しています。不要なObjectの生成を減らせるようにする為。


Child joins should be aliased when merging relations

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

relationsをmergeする際に、子のJOIN処理でaliasを指定するよう修正しています。aliasの指定が無いとtableやfieldsが重複した場合に、エラーになってしまう為。


Fix force equality checking not to break the serialized attribute with Array

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

predicateを生成する為の型チェック処理を修正した、Make force equality checking more strictly not to allow serialized attributeの影響で、serialized attributeにArrayが含まれていた場合に値が取得出来ないバグが発生していたのを修正しています。