Categories: None [Edit]
calculable_attrs
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.
Total
Ranking: 29,286 of 189,654
Downloads: 46,471
Daily
Ranking: 26,330 of 189,628
Downloads: 6
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 36 | 753,992,919 | activerecord |
| 44 | 710,641,326 | rails |
| 107 | 421,983,898 | pg |
| 120 | 368,384,755 | rspec-rails |
| 229 | 203,540,044 | database_cleaner |
| 915 | 53,040,364 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |