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: 30,445 of 196,799
Downloads: 47,679
Daily
Ranking: 42,358 of 196,768
Downloads: 2
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 |
|---|---|---|
| 37 | 841,140,943 | activerecord |
| 45 | 791,852,685 | rails |
| 110 | 472,913,104 | pg |
| 124 | 409,434,396 | rspec-rails |
| 247 | 218,762,652 | database_cleaner |
| 964 | 54,116,868 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |