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: 28,917 of 187,603
Downloads: 45,890
Daily
Ranking: 110,823 of 187,591
Downloads: 1
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 | 719,708,841 | activerecord |
| 43 | 678,869,513 | rails |
| 107 | 402,769,324 | pg |
| 116 | 354,264,025 | rspec-rails |
| 223 | 198,258,227 | database_cleaner |
| 898 | 52,447,180 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |