なるようになるブログ

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

rails commit log流し読み(2015/06/25)

2015/06/25分のコミットです。

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


remove nonexistent hook from instrumentation guide [ci skip]

rails guideのActive Support Instrumentationの修正です。

既に存在しないhookについての説明を削除しています。


Add pending test for the great-grandparent touching bug from #19324

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

複数レコードに対するtouch処理が一度だけ行われるよう修正した対応(Batch touch parent records)の影響で、曽祖父に対するtouch処理が動かなくなる、というバグが発生してしまい、その再現用のテストを追加しています。(スキップしています)

Comment.belongs_to :message, touch: true
Message.belongs_to :project, touch: true
Project.belongs_to :account, touch: true
Account

↑のようなassociationを作成していた場合に、Comment.create!をした場合に、Accountに対するtouchが行われなくなってしまっている、との事です。