Project

General

Profile

Actions

Bug #12241

closed

Counter cache update didn't pick up changes from after_commit callback

Added by Tomer Brisker over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

`after_commit` callback doesn't have a `changes` hash, instead need to use `previous_changes` hash.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #10133: Massive db deadlocks in postgres from hosts_counter updates with counter_cache_fix.rbClosedTomer Brisker04/14/2015Actions
Actions

Also available in: Atom PDF