Sign in

Repository Index

47,133 repositories indexed

Tags: Backend and APIs
Tags

A repository shows when it has any selected Tag.

Clear Tags
Filters

Filters

Clear all filters

1–2 of 2 · Most stars

Counter caches for Rails computed from any block, such as conditional counts or sums, kept up to date by callbacks on any number of models and stored in a column, a shared counters table or your cache store. Recounts run after commit, so concurrent saves can't leave a stale value.

If you are just starting out on a new project I recommend using https://github.com/adamralph/liteguard instead of conditions. Especially if using in a mobile application, less allocations and better performance. This project is deprecated and needs a new maintainer. Contact me if you want to take over.