← Back to Upcase

Acts_as_votable

(Charlieanna) #1

Anyone used a acts_as_votable gem? I need to query the number of votes for an activity. How can I use counter_cache here?

0 Likes

(Robert Lee-Cann) #2

I’d always recommend reading the documentation for any gem, to see if they’ve already answered your question.

In the case of “acts_as_votable”, read the section on caching, here: https://github.com/ryanto/acts_as_votable#caching

0 Likes