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,828 of 193,214
Downloads: 47,224
Daily
Ranking: 27,037 of 193,188
Downloads: 12
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 | 793,912,258 | activerecord |
| 44 | 748,261,752 | rails |
| 108 | 444,791,399 | pg |
| 122 | 387,341,715 | rspec-rails |
| 238 | 210,711,810 | database_cleaner |
| 932 | 53,647,672 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |