なるようになるブログ

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

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

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

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


Merge pull request #34131 from lsylvester/defend-against-unmarshable-exceptions

activesupport/lib/active_support/testing/parallelization.rbの修正です。

parallel testsでExceptionが発生した場合、かつ、Exceptionがmarshal出来ない場合(Procを使用している場合等)に、エラーをDRb::DRbRemoteErrorでラップしてデータを受け渡し出来るよう修正しています。


Fix inspect with non-primary key id attribute

activerecord/lib/active_record/attribute_methods.rbactiverecord/lib/active_record/core.rbの修正です。

primary keyでないid attributeを使用している場合に、inspectメソッドでそのid attributeが表示されないバグがあったのを修正しています。