なるようになるブログ

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

rails commit log流し読み(2020/11/21)

2020/11/21分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Fixed odd behavior of inverse_of with multiple belongs_to to same class

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

同じクラスに対してbelongs_toが複数定義されている場合に、inverse処理で誤った値が指定されてしまうバグがあったのを修正しています。


Inline constructable checking for singular associations

activerecord/lib/active_record/associations/builder/singular_association.rbactiverecord/lib/active_record/reflection.rbの修正です。

singular associationsでのconstructableかどうかのチェックをインラインで行うよう修正しています。