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,344 of 196,430
Downloads: 47,595
Daily
Ranking: 58,715 of 196,406
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 |
|---|---|---|
| 37 | 831,443,683 | activerecord |
| 45 | 782,903,973 | rails |
| 110 | 467,343,180 | pg |
| 124 | 405,195,894 | rspec-rails |
| 247 | 217,230,310 | database_cleaner |
| 960 | 54,019,771 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |