Imagine you have an Account model which has many transactions. calculable_attrs gem allows you to define Account#balance as SUM(transactions.amount) directly in your Account model. And solves n+1 problem for you in an elegant way.
Required Ruby Version
>= 0
Authors
Dmitry Sharkov
Versions
- 0.0.15 September 14, 2014 (9.5 KB)
- 0.0.14 September 10, 2014 (9.5 KB)
- 0.0.13 September 05, 2014 (9.5 KB)
- 0.0.12 September 05, 2014 (9.5 KB)
- 0.0.11 September 04, 2014 (9.5 KB)