Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Countercache not updating updated_at field

#2406

Working on Rails edge.

The countercache does update the count column on create and destroy. But it doesn't update the updated_at field.

Reported by joren · April 3rd, 2009 @ 11:08 AM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Rob Anderton
    Rob Anderton
    • Title changed from Countercahce not updating updated_at field to Countercache not updating updated_at field

    This has come up before (a long time ago): http://dev.rubyonrails.org/ticke...

    Wouldn't be hard to patch, but I guess the question is, should it be?

    April 3rd, 2009 @ 11:18 AM

  2. joren
    joren

    when listing all active records ordered by updated_at

    April 3rd, 2009 @ 11:25 AM

  3. Ryan Bigg
    Ryan Bigg
    • State changed from new to resolved

    Use the :touch option on the belongs_to association for this.

    April 29th, 2010 @ 10:32 PM