A minimal finite state machine with a straightforward syntax.
- ruby-gem
- state-machine
- state-transitions
- conditional-transitions
47,133 repositories indexed
1–2 of 2 · Most stars
A minimal finite state machine with a straightforward syntax.
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.