This project is archived and is in readonly mode.

#1196 ✓committed
Robert Sosinski

counter_cache not decrementing on delete

Reported by Robert Sosinski | October 9th, 2008 @ 05:28 AM | in 2.1.3

On Rails 2.1.1, the counter for a model that uses counter_cache increments with doing:


@post.comments.push(comment)

However, will not decrement with:


@post.comments.delete(comment)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>