I
I
Ivan Nesterovich2014-09-12 11:59:12
Ruby on Rails
Ivan Nesterovich, 2014-09-12 11:59:12

[Rails] Is there a gem to add conditions to counter_cache?

I once saw such a gem, but I don’t remember the name. I only need to increment the counter if the post is published.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Polushkin, 2015-02-12
@dmitry-polushkin

Haven't used it myself, but a light google search turned up: https://github.com/cedric/custom_counter_cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question