Skip to content

Updating counts in response to changes in middle of relation chain #125

Open
@DavidMikeSimon

Description

At the moment, it seems that counter_culture does not notice changes that happen on models in the middle of multi-level counter caches. For example, I added this code to the end of the "updates third-level counter cache on update" test, but it failed:

company2.industry_id = industry1.id
company2.save!

industry1.reload
industry2.reload

industry1.reviews_count.should == 69
industry2.reviews_count.should == 0

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions