Skip to content
loading...
JetRockets profile image JetRockets

Rails: increment counter cache and return value

twitter logo github logo ・1 min read  

What will you do if you have to in/decrement counter cache column and get it actual value via single query?. Learn how to hack ActiveRecord to do this in easy and pretty cool way.

http://jetrockets.pro/blog/rails-increment-counter-cache-and-return-value

twitter logo DISCUSS (4)
JetRockets is a technology consulting firm that architects, designs, develops and supports enterprise-level web, mobile and software platforms helping clients achieve their goals and grow their businesses.
Classic DEV Post from Jul 16 '19

Building a piano with tone.js!