なるようになるブログ

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

rails commit log流し読み(2018/05/25)

2018/05/25分のコミットです。

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


update README link: md instead rdoc [ci skip]

activejob/lib/active_job/queue_adapters.rbのdocの修正です。

correct link to activejob readme [ci skip]で対応したREADMEへのリンクが誤っていたのを修正しています。


Update stale issue comment to mention 5-2-stable

.github/stale.ymlの修正です。

stable botが記載するコメントで、エラーが再現するか確認するブランチが5-1-stableになっていたのを、5-2-stableに更新しています。


Improve grammar for DateAndTime before? and after? calculations [ci skip]

activesupport/lib/active_support/core_ext/date_and_time/calculations.rbのdocの修正です。

DateAndTime#before?#after?メソッドのdocのグラマーを修正しています。


Make force equality checking more strictly not to allow serialized attribute

Active Recordの修正です。

predicateを生成する為の型チェックをより厳密に行うよう修正しています。

where by array|range attribute with array or range valuefindcreateで一環したpredidateを生成する為に追加されたチェックだったのですが、その際、array/range attributeはsubtypeがある、という前提の実装になっていました。

が、serializeを使っている場合、subtypeが無いケースがあり、その場合値のハンドリングが正しく行えていなかった為、チェック処理を修正しています。


Eager loading won't mutate owner record

activerecord/lib/active_record/associations/association.rbactiverecord/lib/active_record/associations/belongs_to_association.rbの修正です。

belongs_to associationを使用している、かつ、associationをeager loadした際に、owner record自身の外部キーの値が変更されてしまうケースがあったのを、変更しないよう修正しています。