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,117 of 188,368
Downloads: 46,176
Daily
Ranking: 137,511 of 188,354
Downloads: 0
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 | 735,233,507 | activerecord |
| 44 | 693,039,291 | rails |
| 107 | 411,794,253 | pg |
| 116 | 360,734,260 | rspec-rails |
| 227 | 200,625,841 | database_cleaner |
| 904 | 52,712,721 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |